Forum Moderators: open
I can obviously change it to suit IE but then its skewd in the other browsers. Is this a box model problem. I have seen hacks that seem to cater for width but I have not seen anything for height.
Hope you can help a newbie. TIA
Hugh
2. If there is a box model issue involved, it is most likely related to standards/quirks mode -- however, I would expect to see the problem cross-browser in that case, not just in IE. What doctype are you using?
I have no <br /> tags in the code but I do have line breaks.
My sidebar is a series of links made into block level elements by css - ie display: block;
Hugh
W3C Validator - HTML [validator.w3.org]
W3C Validator - CSS [jigsaw.w3.org]
We shouldn't work too hard on rendering troubles unless we first know the mark-up validates - you can run in circles otherwise.
Assuming it does validate, then the issue will probably not be with just one elemetm, but with how they are put together. Can you paste in some code from the section where you see the extra white space? If there any domain names in there, just change them to example.com
display:block; to the img element, either directly or in your stylesheet? If that doesn't work, can you post a short and relevant snippet of your markup?
.sidebar {
float:left;
width:150px;
\width:170px;
w\idth:150px;
margin:0;
margin-right:0;
padding:10px;
background-color:#fff;
}
.sidebar a {
background:#fff2c8 url(images/EdgedCircle8.gif) 5px 50% no-repeat;
color:#648ceb;
display: block;
text-decoration: none;
font-size: 75%;
overflow: hidden;
border: 1px solid black;
margin-top:2px;
height:25px;
padding-left: 25px;
}
<div class="sidebar">
<a id="home">Home </a>
<a href="page1.php" id="page">description</a>
<a href="page2.php" id="page">description</a>
ETC
<div id="lowersb">
<img id="poppy" src="images/poppy.jpg" width="148" height="198" alt="poppy" />
<img id="badge" src="images/hall1.jpg" width="148" height="238" alt="hall line colours" />
</div>
</div>
hope thats enough code I can post the lot if required.
Thanks