Jump to content
  • Revista PROGRAMAR: Já está disponível a edição #60 da revista programar. Faz já o download aqui!

Sign in to follow this  
ByMySlf

[Resolvido] Problema com menu vertical no IE

Recommended Posts

ByMySlf

Estou com um problema ao criar um menu vertical através de listas no IE.

Da-me um espaçamento entre as tags <a>, que não ocorre nos restantes browsers e não estou a conseguir resolver.

HTML:

<ul class="left">
	 <li><a href="#">A</a><li>
	 <li><a href="#">A</a><li>
	 <li><a href="#">A</a><li>
	 <li><a href="#">A</a><li>
	 <li><a href="#">A</a><li>
	 <li><a href="#">A</a><li>
	 <li><a href="#">A</a><li>
      </ul>

CSS:

ul {
  list-style-type:none;
  margin:0;
  padding:0;
  }

  
  ul a{
  display:block;
  width:20px;
  height:20px;
  text-decoration:none;
  color:#A7A7A7;
  text-indent:6px;
  }

Share this post


Link to post
Share on other sites
helt

muda

ul {

  (...)

  }

para

ul,li {

(..)

  }

se não resultar tenta trocar o text-indent do "ul a" para um padding


––––•(-• [ ђєlt ] •-)•––––

Share this post


Link to post
Share on other sites
helt

ah pois... tens as li mal fechadas mano...

<li><a href="#">A</a><li>

tem de estar

<li><a href="#">A</a></li>


––––•(-• [ ђєlt ] •-)•––––

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.