Scripsit Beauregard T. Shagnasty:
Quote:
CSS:
h1 span { float: right; font-size: 40%; font-style: italic; }
>
HTML:
<h1><span>Published: 24.06.2008.</span>Header</h1>
I guess that would work, for some values of "work", except that date
notations like 24.06.2008 are bad practice on the WWW or any
international medium. When you write 04.07.2008, how are people supposed
to guess whether it is 4th of July or 7th of April?
The <spantext will appear in bold face by default, rather pointlessly.
If it's relatively unimportant and in smaller font size, why bold it?
You could fix this using font-weight: normal (and you should really
consider the <h1font size too, since some style sheet might set it
fairly small, and then 40% of that is...).
But the <spanmarkup is ominous. The publication date isn't really part
of the header (see the text "Header" - a placeholder for a header
obviously, so why should there be anything else inside <h1>?). The
following is both more logical and simpler to style:
HTML:
<span class="pubdate">Published: June 24, 2008.</span>
<h1>Header</h1>
CSS:
span.pubdate { float: right; font-size: 80%; font-style: italic; }
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/