limitphp Posted December 2, 2008 Share Posted December 2, 2008 If I set the width to 100% in a table or a div, it works fine in firefox (it actually is 100% of the screen), but in IE, it doesn't take up 100% of the screen. Is this some sort of flaw with IE? I thought maybe IE saves room for the scrolllbar, but even with the scrollbar there is a considerable gap in the width. <HTML> <body STYLE="overflow-y:scroll"> <DIV STYLE="position:absolute; top:0px; left:0px; width:100%; background-color:#4682B4"> stuff </DIV> </body> </HTML> Link to comment https://forums.phpfreaks.com/topic/135166-solved-get-div-or-table-to-truly-be-100-width/ Share on other sites More sharing options...
gevans Posted December 2, 2008 Share Posted December 2, 2008 this is a php forum, you should try html or css but... try ensuring that the body padding and margin are both set to 0; Link to comment https://forums.phpfreaks.com/topic/135166-solved-get-div-or-table-to-truly-be-100-width/#findComment-703973 Share on other sites More sharing options...
BrandonK Posted December 2, 2008 Share Posted December 2, 2008 IE has a default body margin. Use: <body STYLE="overflow-y:scroll;margin:0;"> Link to comment https://forums.phpfreaks.com/topic/135166-solved-get-div-or-table-to-truly-be-100-width/#findComment-703978 Share on other sites More sharing options...
limitphp Posted December 2, 2008 Author Share Posted December 2, 2008 it fixed it! You guys are awesome! Link to comment https://forums.phpfreaks.com/topic/135166-solved-get-div-or-table-to-truly-be-100-width/#findComment-703983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.