Jump to content

width:100%; doesn't work


Little Goat
 Share

Recommended Posts

RESOLVEDok, so I just got firefox, and I test out one of the sites I am building with it. I have links that are set to width:100% so that the background will extend all the way over, but FireFox doesn't do that. here is what it does:ffproblem4kc.pngis there some workaround for FF?thnxLG

Link to comment
Share on other sites

It's unlikely that FF is to blame, more likely IE breaking the rules.I think you probably need to add display:block to your menu.

<html><head><style type="text/css">a{width:100%;background-color:yellow;display:block;}a:hover {background-color:#ff3300}</style></head><body><a href="#">Link one</a><a href="#">Link two</a><a href="#">Link three</a><a href="#">Link four</a></ul></body></html>

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...