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 Quote 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 Quote 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! Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.