WordPress.org

Forums

How to align my blog to the left? (5 posts)

  1. nmartell
    Member
    Posted 4 years ago #

    Right now it sits in the middle, I would like it to sit on the left of the screen. I changed everything I saw that said 'center' to 'left' in the css but that didn't work (it was a guess, and probably a bad one!).

    Where should I be looking to write/change the code? I'm working with a slightly modified default theme.

    link -> http://nathanmartell.com/wordpressblog/

    Thank you!

  2. nmartell
    Member
    Posted 4 years ago #

    anyone?

  3. stvwlf
    Member
    Posted 4 years ago #

    Hi

    In your style.css file in your theme folder, find this on line 239

    #page {
    background-color:white;
    margin:0 auto;
    width:760px;
    }

    change it to this

    #page {
    background-color:white;
    margin:0;
    width:760px;
    }
  4. nmartell
    Member
    Posted 4 years ago #

    Thanks for the reply. I gave that a try and it doesn't appear to be working. Any other suggestions on where I might have gone wrong?

    Thanks again.

  5. buddha trance
    Member
    Posted 4 years ago #

    Since you are basing yourself on the Default theme, backup the file you changed and upload a fresh copy of style.css

    Something is not working right on your copy and I couldn't apply any changes...

    Then, work again on the code to make it look as you want

    The correct code to make the blog flush to the left, from the original default style sheet is margin 0, as stvwlf mentioned

    /* Begin Structure */
    body {
    	margin: 10px 0;
    	padding: 0;
    	}
    
    #page {
    	background-color: white;
    	margin: 0;
    	padding: 0;
    	width: 760px;
    	border: 1px solid #959596;
    	}

    If you don't want the 10px on top, then just do margin: 0; on the body as well.

Topic Closed

This topic has been closed to new replies.

About this Topic