You are here: Re: Parsable HTML in :before statement « HTML « IT news, forums, messages
Re: Parsable HTML in :before statement

Posted by Martin Magnusson on 12/19/17 11:18

David Håsäther wrote:
> Martin Magnusson <martin@-xx-blecket-xx-.org> wrote:
>
>
>>I'm trying to modify my address tag to display <h4>Address:</h4>
>>before the actual contents of the tag, like this:
>>
>>address:before{
>> content: "<h4>Address:</h4>"
>>}
>
>
> I see no reason to use CSS for this. Is there a specific reason you
> can't just inlcude that in the document instance?
>

No, there's no practical reason, really. In fact, since some browsers
(at least IE) don't support :before yet, this solution actually breaks
the design, compared to writing an explicit header in the HTML file.

It's just that I like to do things in an elegant way. I figured that
there's no point marking an address with the <address> tag if one still
has to write out "address:" before it. I thought it would be nicer if
the address tag took care of it by itself. And since it doesn't break
terribly (I can live without the header in IE), I think I will use Oli's
solution.

/ martin

 

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

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