Web Analytics Made Easy -
StatCounter Indent level for an li element - CodingForum

Announcement

Collapse
No announcement yet.

Indent level for an li element

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

  • Indent level for an li element

    Hi,

    how can i adjust the indent level for an li element in an unordered list.

    Roelf
    I am the luckiest man in the world

  • #2
    Which way do you want to adjust it?

    Comment


    • #3
      Experiment with:

      li {
      margin-left: 5px;
      }

      You can also try padding-left;
      jasonkarldavis.com

      Comment


      • #4
        That'll probably only work for IE, I could be wrong though.

        ~Quack

        Comment


        • #5
          Originally posted by QuackHead
          That'll probably only work for IE, I could be wrong though.

          ~Quack
          Should actually work in IE5+ and any Gecko-based browser, as well as Opera 5+.

          I'm not sure about IE4.
          jasonkarldavis.com

          Comment


          • #6
            thanks, the margin-left property worked fine for me
            I am the luckiest man in the world

            Comment


            • #7
              I use div element for better results :
              Code:
              <div style="width:640px;">
              	<ul>
              		<li style="margin-left:20px;">Intended 20 pixels</li>
              		<li>Not intended</li>
              	</ul>
              </div>
              Zvona
              First Aid for
              Web Design

              Comment

              Working...
              X