Jump to content
Fórum Script Brasil
  • 0

line-height num <p> com imagem na linha


George

Question

eu estou fazendo algo assim:

/* CSS */

p.menu {
line-height: 10px;
}
<!-- HTML -->

<p class="menu">
<img src="" width="6" height="9">&nbsp;<a href="">link legal aqui</a><br>
<img src="" width="6" height="9">&nbsp;<a href="">link legal aqui</a><br>
<img src="" width="6" height="9">&nbsp;<a href="">link legal aqui</a><br>
</p>

funciona normalmente no FF mas não no IE. Se eu tirar a imagem no começo na linha, o IE funciona normal. como eu posso fazer pra ficar bom nos dois navegadores?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

crie uma lista

<ul>
  <li><a href="#">link legal aqui</a></li>
  <li><a href="#">link legal aqui</a></li>
  <li><a href="#">link legal aqui</a></li>
</ul>
e especifique a imagem que quer na lista.
ul {
line-height: 10px;
list-style-image: url(caminho/nome_imagem);
}

espero ter ajudado

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      651.8k
×
×
  • Create New...