|
Posted by Martin Magnusson on 10/02/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]
|