What is the best approach to creating a div that will occupy the entire width of the screen, regardless of resolution? I am trying to add a top bar and a lower footer area with divs that have a black background and a stylized border that I would create with a small image and repeat. For some reason, my attempts lead to small spaces on the top and sides of the div?
My markup is like:
<div id="top"> Top bar stuff </div> <div id="pagewrap"> All the page content </div>
CSS
#top { width: 100%; margin: 0; padding: 0; background-color:#000
html css
Fred randall
source share