classes/pseudo-classes (was Re: [thelist] <P> vs. <BR><BR>)

s t e f stef at nota-bene.org
Wed Jul 18 09:09:39 CDT 2001


Martin wrote:

> Hey Dan
> 
> Did you know that you can use pseudo-classes?
> 
> Here's what I do on my site. I want to have 2 <p> styles,
> one main one plus one for related links in my sidebar
> (in the latter case, the content is right aligned).
> 
> Here are the 2 css classes:
> 
> p     {
> 	    margin-left: 10px;
> 	    padding-left: 15px;
> 	    margin-right: 15px;
> 	    padding-right: 5px;
>         }
> 
> p.related {
> 	    text-align : right;
> 	    color: #000000;
> 	    font-family : "Trebuchet MS",Verdana, Geneva, Arial, sans-serif;
> 	    font-size: 11pt;
> 	    line-height: 120%;
> 	    margin-bottom: 10px;
>         }

Hey Martin,
I just wanted to say that you're dealing with _classes_, here.
Pseudo-classes are a different thing...


-- 
s t e f
[ http://www.nota-bene.org/ ]
[ irc: irc1.fr.ircnet.net #notabene ]





More information about the thelist mailing list