Get a free trial // Grow your CSS skills // Land your dream job

Center whole blog

  • # April 25, 2010 at 6:55 am


    I’m looking to center my whole … 110044.png

    Not sure how to figure this out.. I can center it but then the text in the blog gets centered when I need everything centered except the text which should remain in align left..

    Anyone know how to do this?


    # April 25, 2010 at 3:13 pm

    The exact code depends on how your site is coded, but it’s usually done like this:

    #wrapper { margin:0 auto; width: 960xp; }

    This assumes that you have a div with an id of "wrapper" that wraps around your entire site. It has a fixed width and the "margin:0 auto" centers it.

    # April 25, 2010 at 3:25 pm

    I’m using a fullwidth framework..

    I’m after the content being centred..

    I think I worked it out to be

    #content {

    It looks centered but i’m not sure how it will stand in different browsers

    # May 1, 2010 at 12:40 pm

    It’s the outer wrapper that you need to center to center the whole blog

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed