Rifts Posted February 16, 2011 Share Posted February 16, 2011 Hey guys. I need some quick help. I have my div width: 100% yet it still leaves a border on all sides. How can I get it to fill the whole screen. thanks Link to comment https://forums.phpfreaks.com/topic/227878-divs-dont-fill-entire-screen/ Share on other sites More sharing options...
Rifts Posted February 16, 2011 Author Share Posted February 16, 2011 figured it out need to add * { margin: 0; padding: 0; } to my css Link to comment https://forums.phpfreaks.com/topic/227878-divs-dont-fill-entire-screen/#findComment-1175043 Share on other sites More sharing options...
cs.punk Posted February 16, 2011 Share Posted February 16, 2011 Haha don't you just hate when that happens! Link to comment https://forums.phpfreaks.com/topic/227878-divs-dont-fill-entire-screen/#findComment-1175099 Share on other sites More sharing options...
cssfreakie Posted February 16, 2011 Share Posted February 16, 2011 dont forget to set a parent width for the body otherwise it wont work for older browsers Link to comment https://forums.phpfreaks.com/topic/227878-divs-dont-fill-entire-screen/#findComment-1175163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.