I am trying to add border infront of text but i am not able to do that .
I have added the image , can anyone tell how i can complete this ?
sample image
I am trying to add border infront of text but border is getting added to whole div. I am trying to add border only infront of text.
3
Answers
The example above is from MDN Webdocs,refereence link
The
<fieldset>
element is used to group related elements in a form. The element definesa caption for the
<fieldset>
element and it will appear on the border of the<fieldset>
.This will render a box with the words "Text on Border" on the top border of the box. The element provides this feature in conjunction with the
<fieldset>
element.Add a
::before
with white border.