So long as the id is only used once in an HTML source, its fine.

This

#topnav {
        vertical-align:top;
        padding:30px 10px 15px 10px;
}
#topnav a {
        color:#FFFFFF;
        text-decoration:none;
}
#topnav a:hover {
        color:#FFFFFF;
        text-decoration:underline;
}


Simply refers to the element with the id="topnav" and any anchors within
that particular element.

You can reference it as much as you want in the CSS, just not in the HTML


Sandra Clark
=============
http://www.shayna.com
Training and Consulting  in CSS and Accessibility
Team Fusebox


-----Original Message-----
From: Kris Jones [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 7:33 AM
To: CF-Talk
Subject: Re: CSS Firefox vs. IE Question...

I think what Dana means is that ID selectors like:
    #topnav

should only be called once per page. Otherwise you should use a class
selector instead.

Cheers,
Kris

On 3/20/07, Che Vilnonis <[EMAIL PROTECTED]> wrote:
> Dana... What does that mean?
>
> -----Original Message-----

> one side note: you have multiple id's referencing the same identifier
which
> technically makes it a class instead.
>
> Off the top of my head it looks like a box model issue with sizing, but I
> didn't have time to scrounge through the css atm. :)
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273217
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to