1

I'm wondering if there's a way to add extra margin-left to each next item, such as

-Item1
  -Item2
    -Item3
      -and so forth

Is this possible with CSS3? I haven't seen anything for 'every next item'.

BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Casey Dwayne
  • 2,142
  • 1
  • 17
  • 32
  • 2
    Silly question: why on earth would you want to do this? Indentation implies that the next element is part of a sub-list, not a sibling. – Blazemonger May 08 '13 at 19:06
  • 1
    It's not silly. It's for visual reasons. – Casey Dwayne May 08 '13 at 19:06
  • I second what @Blazemonger has to say – Explosion Pills May 08 '13 at 19:06
  • 1
    If you saw the design you would understand. I'm just looking for a simple CSS way to do this without IDing each one or using JS. – Casey Dwayne May 08 '13 at 19:07
  • this is true, in fact what you have drawn is
    • ...
      • ...
    – mikeswright49 May 08 '13 at 19:08
  • You're trying to do something very non-standard, so you'll have to come up with a non-standard solution and indent each element explicitly. Sorry, there's no easy way to implement what you want. – Blazemonger May 08 '13 at 19:08
  • That is the way it is to appear, not actually be in the mark up. This question can be used for more than just list items. It's just for visual reasons people.. the image is a star, not a disc or numeral. Large text. Graphic reasons, just don't want messy markup. – Casey Dwayne May 08 '13 at 19:10
  • Default ul>li>ul>li>ul>li etc. looks like you want: http://jsfiddle.net/5XpXv/ – WooCaSh May 08 '13 at 19:18
  • I second what @kcdwayne says. I want to do precisely the same thing; and saying 'you don't want to do that' really doesn't help me. – David Given Jan 06 '15 at 22:06