Skip to content

Instantly share code, notes, and snippets.

@joecritch
Created April 27, 2010 13:53
Show Gist options
  • Save joecritch/380744 to your computer and use it in GitHub Desktop.
Save joecritch/380744 to your computer and use it in GitHub Desktop.
/* A few random ideas I've just had. Might not actually work. */
/* You know the CURRENT situation (overriding the first one because it's often not applicable)... */
.exampleList > li { margin-left: 100px; }
.exampleList > li:first-child { margin-left: 0; }
/* With a similar level of browser support, this could be achieved by ...*/
.exampleList > li + li { margin-left: 100px; }
/* Or how about negative margins on the parent? */
.exampleList { margin-left: -100px; }
.exampleList > li { margin-left: 100px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment