Web Analytics Made Easy -
StatCounter UL height? - CodingForum

Announcement

Collapse
No announcement yet.

UL height?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • UL height?

    Is there a way to increase space between <LI> elements in a <UL>? I want them to have more space than a typical list.

    Thanks

  • #2
    css would look like this:
    li { margin: ?px(em) 0 ?px(em) 0:}

    Margin allows you to set all four directions in one line (top right bottom left). As opposed to margin-top:x; || margin-bottom:x;.

    replace the "?" with whatever distance you wish to have for the list, and choose wheather you want to use px's or em's.

    You will need to set the other zeros to whatever you wish in order to get the list to indent properly for you.

    example:
    li {margin 5px 0 5px 15px;}
    "Never offend people with style when you can offend them with substance."
    --Sam Brown

    Comment


    • #3
      Ah. I was trying to do it all from the CSS on the UL element.

      Thanks for the tip. That is perfect!

      Comment

      Working...
      X