You are here: Re: styled text substitute for a picture that fails to load... « HTML « IT news, forums, messages
Re: styled text substitute for a picture that fails to load...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация