• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Why are my css ids reading things from other id's?

Question

tapetape    0

I want my navigation to have have a padding of 2px and a margin-left of -3px so that for my active/hover/normal/visited states they can have a top border with not gaps in between (they are inline). This is fine but for some reason it is applying parts of that to my img hovers and my lightbox img hovers

even though I have told it not to. I have even given the navigation a separate stylesheet but my img:hover's are still reading it.

It looks like the are reading the padding:2px; and margin-left:-3px; because all is fine (except the look of the nav) when I remove them.

My site is here:

http://keith.fh-net.com/keithsheepnew/index.html

Also I know that it is a little broken in IE so don't worry about that bit for now I just need it to work in Firefox right now. thanks.

Edit:

I was assuming that everyone has Web Dev toolbar, so just in case you don't the css files are Here

FIXED

Sorry, this can be deleted now All I needed was:

a:link, a:visited, a:hover, a:active{
	padding:0;
	margin:0; 
	border:0;

	}

thanks

Edited by tapetape

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.