|
Posted by dorayme on 11/17/54 11:29
> From: Toby Inkster <usenet200510@tobyinkster.co.uk>
>
> dorayme wrote:
>> Toby Inkster <usenet200510@tobyinkster.co.uk>
>>
>>> HR.mysep {
>>> content: "* * *";
>>> text-align: center;
>>> color: inherit;
>>> background: transparent;
>>> border: 0px none;
>>> }
>>
>> Nice one! If it worked, - I said, if it worked - I could be more
>> semantically correct...
>
> Works nicely here. Some lesser browsers may have trouble with the
> "content" property. You may be able to inprove support by giving it a
> background image of a transparent GIF of three asterisks.
>
Ah Toby, at first I formed the theory that it was a nice joke on
me, now it is hard to shake the idea that this is a nice
elaboration!
But, apparently, I am too cynical. I made a quick search and
first saw that:
Peter-Paul Koch, freelance web developer in Amsterdam, the
Netherlands, says it is only supported by Opera and that "we
shouldn't use the content declaration at all. It adds content to
the page, and CSS is meant for adding presentation to the page,
and not content".
Perhaps this is a lousy argument as your suggestion is precisely
for adding presentational features, surely a separator is part
of styling, layout...
Seems that support is not great though... I think being
semantically correct gets to be too pricey if one has to make
gifs... My <p>* * *</p> (or at least with a div instead) is
still looking more tempting...
dorayme
Navigation:
[Reply to this message]
|