SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Barcelona
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What happened to the top borders in Internet Explorer ?

    Hi, can anyone please tell me why the top borders in this example show up in Firefox but not IE.

    ----

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <style>

    div.menu1 { height: 35px; }

    div.menu1 a,div.menu1 span{ border: 1px solid orange; padding: 2px 5px 2px 5px; margin-right: 4px; text-decoration: none;}

    div.menu1 a:hover { background-color: orange; text-decoration: none; }

    </style>

    </head>
    <body>

    <div class="menu1"><span>Novedades</span><a href="#">Catálogo Completo</a><a href="#">Ofertas</a></div>

    </body>
    </html>

    ----

    Mark

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems you have to add
    Code:
    padding-top:3px
    to div.menu1.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Barcelona
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well it works, I dont know why. Cheers.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •