Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* 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
You can’t perform that action at this time.