Text Align <li> in unordered list

Discussion in 'CSS' started by dcristo, Sep 24, 2007.

  1. #1
    Using CSS can someone please tell me how to text align left the <li> element of an unordered list. Firefox looks good, but for someone reason in IE the list is centred due to the table it's in, so I want to try and just align the text in the list if possible...
     
    dcristo, Sep 24, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    in your css:

    li { text-align:left; } ???

    Though I question why you'd have a list inside a table or why the table elements are set to center...
     
    deathshadow, Sep 24, 2007 IP
  3. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if you're doing it right (and it doesn't sound like you are) you need to remove the default padding IE gives it.
     
    Crimsonc, Sep 24, 2007 IP
  4. George Smith

    George Smith Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I also think you better try using CSS for this as rightly mentioned by DeathShadow.
     
    George Smith, Oct 5, 2007 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If we had smore html and css code to look at, we'd have a better idea of what's bothering you.
     
    Stomme poes, Oct 8, 2007 IP