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.

Why the "list" element is not aligned as I expect it to be ??

Discussion in 'HTML & Website Design' started by tayiper, Jul 29, 2006.

  1. #1
    It is itself contained in the table below the word "NAVIGATE"; see the "intro" page: intro.html on one of my site-variants. As you can see, there is a sort of "intendation" on the left side, however, I don't use padding nor margins.


    You can see the old version/layout on the "not-anymore-updated" futile "intro" page: intro.html, where I didn't yet use the "list" element.


    tayiper
     
    tayiper, Jul 29, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    All modern graphic browsers indent ol and ul. IE and Opera use {margin-left: 40px;}, while Moz and Safari use {padding-left: 40px;}. To eliminate the indention,
    
    ul, ol {
        margin: 0;
        padding: 0;
        }
    Code (markup):
    cheers,

    gary
     
    kk5st, Jul 29, 2006 IP
  3. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Thanks much for help. Oh and sorry, but what's that "ol" part ??


    tayiper
     
    tayiper, Jul 29, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
  5. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    tayiper, Jul 29, 2006 IP
  6. esnstudio

    esnstudio Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ul stands for unordered list - which is a list with bullet points.

    ol stands for ordered list - where items in the list are numbered in sequence (ie: 1, 2, 3, 4...)
     
    esnstudio, Jul 29, 2006 IP
    tayiper likes this.
  7. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #7
    Yeah thanks, but I know that (i.e. I've read the linked article on W3C); I am just curious, is it necessary to ... if I only use the "ul" and "li" tags by default ??


    tayiper
     
    tayiper, Jul 30, 2006 IP
  8. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #8
    Tayiper, you keep asking questions, repeatedly and not giving much back. Give people reputation points for helping you.

    No is isn't necessary if you aren't using ordered lists (ol).
     
    AdamSee, Jul 30, 2006 IP
    tayiper likes this.
  9. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #9
    Well sorry, but I don't know what they (these "reputation points") are ...


    /EDIT: Oh I see now, it's obviously that "link" above your post, right ??!


    tayiper
     
    tayiper, Jul 30, 2006 IP