• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

CSS Help - Want To Show A Box Like This :-

TheBigK

Well-known member
#1
I'm trying to enclose some text in the box like this -

--|LABEL|----------------------
|. . . . . . . . . . . . . . . . . . . . . . . . |
|. . . . . . . . . . . . . . . . . . . . . . . . |
|. . . . . . . . . . . . . . . . . . . . . . . . |
|. . . . . . . . . . . . . . . . . . . . . . . . |
|. . . . . . . . . . . . . . . . . . . . . . . . |
----------------------------------

Ignore the dots in the space. I've seen such boxes done entirely in CSS. Can someone tell me how exactly to add a label in a line? :)
 

MagnusB

Well-known member
#4
I am sure that there are other ways of doing it, but this strikes me as the easiest way. You then just treat the fieldset as any other div.