• I’m working through making my own basic WordPress framework.

    I generally like a fixed layout using a centered #Container with my divs inside.

    I’ve noticed that although the width of my site/page is larger than the width of some other websites I view online, their site looks wider in comparison.

    These sites seem to use a #Wrapper (at 100% width), #Container (centered) and the #Divs inside. Would this effect how the site is viewed on screen.

    Would this be preferrable to what I am doing? Or just a different way of doing it.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s just a different approach. The extra #wrapper can often be used to hold a background or other custom graphics. You can sometimes achieve a similar effect using your approach if you remember that you can style the html element in CSS. People do seem to neglect that tag.

    The differences you’re seeing may be just be due to padding on #wrapper or just a slightly smaller container div.

    Thread Starter working-together

    (@working-together)

    Yeah. I normally just use the Body tag for background and things. However, I can see how having the extra wrapper gives you more flexibility. Seeing that I am making a basic framework that is flexible to skin with graphics, maybe I will add it to give it flexbility.

    Strange with width differences I am seeing. I’ll firebug it more.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrapper, Container, Divs question..’ is closed to new replies.