The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Targeted CSS?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #36997

    Just wondered if it was possible to target say, a second list item in an unordered list? I usually it would just add a custom id or class to target the list item, but I’m using squarespace for this perticular site and need to target it through css, is this possible?

    any help would be greatly appreciated :D


    There are a couple of ways to do it, although the second method only works in IE9 and up:

    ul > li + li { ... }
    ul > li:nth-child(2) { ... }
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.