1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need a little help with wordpress theme.

Discussion in 'CSS' started by BrendanGall, Sep 22, 2007.

  1. #1
    On my website here.

    I am looking to move the whole layout from the center of the page to the left of the page.

    I tried a couple things, but have not been successful. I have posted it in the theme forum and have not recieved any response.

    Is there anyone who would be able to take a look? It would be greatly appreciated. Thanks.
     
    BrendanGall, Sep 22, 2007 IP
  2. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #2
    From style.css, remove "text-align:center;" from the body {} rule and remove "margin:0 auto;" from the #page {} rule.
     
    soulscratch, Sep 22, 2007 IP
    iceberg likes this.
  3. Redders

    Redders Well-Known Member

    Messages:
    1,058
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Hmm did you try adding:

    float: left;

    to your body tag in the CSS?

    Or maybe do that^ as i am no wizard lol.
     
    Redders, Sep 22, 2007 IP
  4. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Whoaaaaaaaaaaaaa, you do NOT want to do that. Please know what you're doing before giving tips to someone else.
     
    soulscratch, Sep 22, 2007 IP
  5. Redders

    Redders Well-Known Member

    Messages:
    1,058
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #5

    Hi,

    In his first post, he stated he wants the whole layout moving to the left.

    I have just tested it on my wordpress blog, and it seems to have worked for me (check my signature (rentchallenge)).

    Thanks, Redman.


    http://www.fm-base.co.uk/redders/wordpress/
     
    Redders, Sep 22, 2007 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    His layout by default would have been left aligned had it not been for the margin:0 auto; on #page and body { text-align:center; } which center the layout (text-align:center; targets IE 5.5 and the wrapper text-align resets it). No need to float the body left. Just remove those declarations.
     
    soulscratch, Sep 22, 2007 IP
  7. iceberg

    iceberg Notable Member

    Messages:
    1,751
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    200
    #7
    Your problem is solved now. :)
     
    iceberg, Sep 22, 2007 IP
  8. BrendanGall

    BrendanGall Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I figured it out. Thanks guys.
     
    BrendanGall, Sep 26, 2007 IP