Can somebody figure out why my html is acting this way?

Discussion in 'HTML & Website Design' started by Altug, Dec 1, 2009.

  1. #1
    Can anyone check out www.wrinkle-free.info and tell me why the html is ALL centered?

    In my html editor (arachnophilia) it shows up absolutely fine in the preview. Any ideas? I've fiddled with it but can't come up with a solution. :confused:

    Any help would be appreciated as my brain just isn't working right now!

    Thanks a bunch in advance.

    Altug
     
    Altug, Dec 1, 2009 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    Because the align of texts is set center.
     
    s_ruben, Dec 1, 2009 IP
  3. neilb4me

    neilb4me Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    add a css style to the text which is centered like this

    text-align:left;
     
    neilb4me, Dec 1, 2009 IP
  4. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #4
    Add
    <style>
    td,div{
    text-align: left;
    }
    </style>
    in the <head></head>
     
    s_ruben, Dec 1, 2009 IP
  5. Altug

    Altug Active Member

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Thanks Ruben, I feel really stupid lol Any idea why it was previewing correctly in arachnophilia?

    I thought that although the text was centered, that the tag was closed after the headline. :confused: Guess I was wrong.

    Thanks for your help again :)
     
    Altug, Dec 1, 2009 IP
  6. pkgelectricals

    pkgelectricals Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    float:left;
     
    pkgelectricals, Dec 26, 2009 IP
  7. togu25

    togu25 Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i can't open your site
     
    togu25, Dec 26, 2009 IP
  8. 123funda

    123funda Member

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #8
    because
    here you are using align center, so just adjust it
     
    123funda, Dec 27, 2009 IP