background display not correctly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cezar

    background display not correctly

    Simple example:

    ....
    <td><a class="abc" href="#"></a></td>
    ....

    [css]
    ..abc{
    display:block;
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    }

    ..abc a:hover{
    background:#069 ;
    }

    IE display it correctly, but only in quirks mode. In standard mode <a>
    is moved some few fixel to left side.

    Is there any solution to fix it ?

    --
    Regards,
    Caesar
  • Chris Leipold

    #2
    Re: background display not correctly

    Hi,

    the problem is, that height:100%; will not work, if the containing box
    (td) has no defined height. I Guess.

    Chris

    Cezar wrote:[color=blue]
    > Simple example:
    >
    > ...
    > <td><a class="abc" href="#"></a></td>
    > ...
    >
    > [css]
    > .abc{
    > display:block;
    > margin:0;
    > padding:0;
    > width:100%;
    > height:100%;
    > }
    >
    > .abc a:hover{
    > background:#069 ;
    > }
    >
    > IE display it correctly, but only in quirks mode. In standard mode <a>
    > is moved some few fixel to left side.
    >
    > Is there any solution to fix it ?
    >[/color]

    Comment

    Working...