IE 6 'display:block' problem

Discussion in 'HTML' started by prash.marne@gmail.com, Mar 28, 2007.

  1. Guest

    hello,
    i am creating a simple image map & my HTML code is ..

    <html>
    <head>
    <style type="text/css">
    #main-box a.us {
    position: relative;
    top: -248px;
    left: 130px;
    background-color: none;
    display: block;
    width: 93px;
    height: 17px;
    }
    </style>
    </head>
    <body>
    <div id="main-box" style="border: 1px solid #000000">
    <div class="map">
    <img src="./map.gif" type="image/gif" usemap="#map1"
    alt="map">
    <a href="#" class="us"><img src="./united-states.gif" ></
    a>
    <map name="map1">
    <area alt="" shape="poly"
    coords="83,119,124,123,196,131" href="#">
    </map>
    </div>
    </div>
    </body>
    </html>

    it's working fine for all he browser ecxept IE 6
    On IE 6 it takes some additional space at the bottom of the map image
    I tried placing text insted of image for <a> it works fine
    also if i remove display:block it works fine , but can't remove it ...
    (on IE 7 also it works fine)

    Is it IE 6 problem...? i am going wrong somwhere...??
    or is there any substitute for 'display:block' ...??
    plz help.......

    Thanks ,
    Prashant.
     
    , Mar 28, 2007
    #1
    1. Advertising

  2. Jim Moe Guest

    wrote:
    > hello,
    > i am creating a simple image map & my HTML code is ..
    >

    Post an URL to a test case.
    >
    > it's working fine for all he browser ecxept IE 6
    > On IE 6 it takes some additional space at the bottom of the map image
    >

    If the posted code is your complete page, you are missing a DTD
    (doctype), and a <title>. HTML Strict is appropriate. Otherwise browsers
    switch a Quirks mode where all sorts of unusual behavior happens.

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)
     
    Jim Moe, Mar 28, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Showjumper
    Replies:
    1
    Views:
    723
    Showjumper
    Mar 19, 2005
  2. Noozer

    Block DIV within a block DIV?

    Noozer, Jan 6, 2005, in forum: HTML
    Replies:
    3
    Views:
    11,432
    Mitja
    Jan 6, 2005
  3. morrell
    Replies:
    1
    Views:
    999
    roy axenov
    Oct 10, 2006
  4. Henry
    Replies:
    0
    Views:
    479
    Henry
    Feb 10, 2004
  5. Janis
    Replies:
    7
    Views:
    192
    Dr J R Stockton
    Nov 8, 2006
Loading...

Share This Page