[wp-hackers] Styling of "post date"

Mike Little journalized at gmail.com
Sun Sep 12 00:12:40 UTC 2004


On Sun, 12 Sep 2004 00:58:04 +0100, Allan Mertner <amwp at mertner.com> wrote:
> >
> This is obviously true, which is why I added the comment on
> readability.  IMO, this CSS is more readable, as in
> easier-to-remember-what-it-does - and has no side effects:
> 
> .postdate {
>     color: blue;
> }
> 
> than this:
> 
> #content h2 {
> color: red;
> }
> 
> #content div.storycontent h2 {
>     color: black; // or whatever the default is. Remember to change it
> in both places.
> }
> 
> I can work around it by hacking index.php or by adding what I would
> consider unnecessarily obscure statements to my stylesheet. I'd prefer
> it if I didn't have to do either, but it's of course not my call.
> 
> 

My first example should have been 

#content>h2 { color:red;}

and then you don't need to do anything for h2s within your posts. 

Matt's point is valid though that logically you would probably want to
use h3 or even h4 of your story title is h3 (mine are)


Mike
-- 
Mike Little
http://zed1.com/journalized/



More information about the hackers mailing list