Multiple link problems

Discussion in 'CSS' started by danramosd, Jan 25, 2010.

  1. #1
    I'm working on my new wordpress blog and am having trouble with css and the links. I have pretty much two different types of link styles that i want to use one is a class and the other is a id. For some reason my class is getting applied to the id and i cant figure out why. The url is motionpaused.com/blog. You will see that the home link is white and taking on attributes of the entry title links. Can someone take a look at my css and tell me why this is happening?!?
     
    danramosd, Jan 25, 2010 IP
  2. ashivapu

    ashivapu Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this...

    I noticed throughout your css you had all your link selectors like so:

    #navwrapper a:link, a:visited, a:active
    {
    	font-size: 13.5px;
    	color: #0a0a0a;
    	text-transform: uppercase;
    	text-decoration: none;
    
    }
    HTML:
    It should be like this:

    #navwrapper a:link, #navwrapper a:visited, #navwrapper a:active
    {
    	font-size: 13.5px;
    	color: #0a0a0a;
    	text-transform: uppercase;
    	text-decoration: none;
    
    }
    HTML:
    So basically without repeating the class/id name with the selector you are essentially reusing the same selectors over and over again. Hopefully that helps.

    Make sure to correct this in all the places throughout your stylesheet.
     
    ashivapu, Jan 26, 2010 IP