Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Center whole blog

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28835
    leehughes
    Member

    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

    #74685

    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.

    #74686
    leehughes
    Member

    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

    #74969
    Hedison
    Member

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.