Posted by Vladdy on 11/18/20 11:28
In the first place, stop top-posting [fixed]
> <typingcat@gmail.com> wrote in message
> news:1128521655.720749.138280@z14g2000cwz.googlegroups.com...
>
>><div style="position:relative; border:solid 10px;">
>> <div style="position:absolute; top:0; left:0;">Hello, World!</div>
>></div>
>>
>>The text is displayed INSIDE the boarder. But is it possible to make it
>>displayed ON the boarder?
>>
middletree wrote:
> In the first place, "border" doesn't have an 'a'. Secondly, perhaps you
> want to use a fieldset with legend. Try this:
>
> <fieldset>
> <legend>Bob</legend>
> Other stuff
> </fieldset>
>
Second, do not use mark-up for presentational purposes especially when
equivalent presentation is easy to achieve with simple CSS:
http://demos.klproductions.com/sandbox/fieldsetlegendlook.html
--
Vladdy
http://www.klproductions.com
[Back to original message]
|