Forums

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

Home Forums CSS [Solved] combine a list first-of with last-of with 2 different attributes

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #163135
    GroovyMotion
    Participant

    I am trying to make my code leaner so is there a way to combine a list li:first-of-type { margin-left: 0; } with a li:last-of-type { margin-right: 0; } or do I have to do it the standard way on 2 separate lines? Thanks in advance!

    #163137
    GroovyMotion
    Participant

    Ok I see…I wasn’t sure but I now have the answer! Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.