Grow your CSS skills. Land your dream job.

Center whole blog

  • # April 25, 2010 at 6:55 am

    Hi,

    I’m looking to center my whole blog..like.. http://i45.photobucket.com/albums/f56/p … 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?

    Thanks

    # April 25, 2010 at 3:13 pm

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

    Code:
    #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 {
    margin:auto;
    width:600px;

    http://www.leehughes.co.uk/newsite/blog-2/

    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.

*May or may not contain any actual "CSS" or "Tricks".