Width problems in a div

liunx

Guest
<div id="e-mail" style="position:absolute; left:0px; top:168px; z-index:9; width: 100%; height: 100; background-color: #FFFFFF;">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"e-mail.html">E-mail me here.</a>
</div>

So that's part of my script. The problem I'm having is that even though I assign the width to 100%, it doesn't actually span the whole 100%. does anyone know why this is and know how to fix it?

(not sure if it's relevent, but I'm using IE 6.0 in a 1280x1024 resolution)try this in the head section of your page.
<style type="text/css"><!--
body {
margin: 0;
padding: 0;
}
--></style>thanks, it worked :)

just curious, but do you know why it was adding a random margin?

earlier, I also tried adding "margin-left: 0px; margin-right: 0px;" into the div but it didn't work.the actual body element on your page has nice little margins by default, so then everything inside them can't touch the edges. By removing those you allow the content out to the edge.

Does that make sense?ahhhh! ok :)

thanks again for the helpnp :)
 
Back
Top