Familyar

Помогите оформить рамку

Recommended Posts

Опишу свою проблему лаконично.

Не могли бы вы подсказать как встроить текст в линии рамки, как показано на картинке.

 

Bezymyanny.jpg

Edited by Familyar

Share this post


Link to post
Share on other sites
<fieldset>
  <legend>
    Lorem ipsum dolor sit amet.
  </legend>
  Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quam harum facere provident nostrum eos fugit saepe quia quos natus maiores libero, nulla reprehenderit tempore. Sit quae culpa cupiditate voluptatum aspernatur?
</fieldset>
fieldset {
  border-radius: 5px;
  width: 400px;
}

К тег legend тоже можно применять разные css свойства если что.

Share this post


Link to post
Share on other sites
26 минут назад, AlexZaw сказал:

<fieldset>
  <legend>
    Lorem ipsum dolor sit amet.
  </legend>
  Lorem ipsum, dolor sit amet consectetur adipisicing elit. Quam harum facere provident nostrum eos fugit saepe quia quos natus maiores libero, nulla reprehenderit tempore. Sit quae culpa cupiditate voluptatum aspernatur?
</fieldset>

fieldset {
  border-radius: 5px;
  width: 400px;
}

К тег legend тоже можно применять разные css свойства если что.

Спасибо вам,помогли!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Member Statistics

    46,340
    Total Members
    3,128
    Most Online
    Someone
    Newest Member
    Someone
    Joined
  • Recently Browsing   0 members

    No registered users viewing this page.