Does it matter if...

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

16-Dec-09 13:11
Say one has multiple link schemes on a page with CSS.

1. Would it be more efficient/logical to use classes for each scheme?

OR

2. To call the links by stating their parent container?

1.

a:link.links1 {
color #123456;
}


2.

#links2 a:link {
color: #645321
}


[Edited by knystrom19 on 16-Dec-09 13:11]
17-Dec-09 19:34
Hi knystrom19,

What do you mean by "link schemes"? Link styles?

It doesn't really matter whether you select a link using a class on the link, or via the link's container element. Use whatever method gives you the most flexibility for your site.

Cheers,
Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated