HighDots Forums  

background display not correctly

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss background display not correctly in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cezar
 
Posts: n/a

Default background display not correctly - 01-05-2005 , 03:37 AM






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

Reply With Quote
  #2  
Old   
Chris Leipold
 
Posts: n/a

Default Re: background display not correctly - 01-05-2005 , 05:10 AM






Hi,

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

Chris

Cezar wrote:
Quote:
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 ?


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.