Я новичок в CSS, и я пытаюсь создать Div элемент с границей, как
содержание DIV с границами CSS
Мои HTML
ниже:
<div class="mystyle">
<h3>header message<h3>
<p> this is my content</p>
</div>
Я новичок в CSS, и я пытаюсь создать Div элемент с границей, как
содержание DIV с границами CSS
Мои HTML
ниже:
<div class="mystyle">
<h3>header message<h3>
<p> this is my content</p>
</div>
Используйте <fieldset>
тег с <legend>
внутри.
Попробуйте этот код:
<fieldset>
<legend>Example</legend>
<div class="mystyle">
<h3>header message</h3>
<p>this is my content</p>
</div>
</fieldset>
его неработающая загрузочная версия модели внутри – Ranjith
она должна работать. можете ли вы создать скрипку с вашей проблемой? –
Мы можем сделать это с помощью 2-х HTML теги:
1.<fieldset></fieldset> and <legend></legend> tags.
<legend> tag defines a caption for the <fieldset> tag and that caption comes with the border which you are looking for...
Ex:
<fieldset>
<legend>What is Lorem Ipsum?</legend>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</fieldset>
Есть ли у вас час eard о '
@DhavalMarthak нет – Ranjith