Add a horizontal line on 2nd to last of type | XM Community
Skip to main content

Add a horizontal line on 2nd to last of type

  • October 12, 2022
  • 4 replies
  • 209 views

Forum|alt.badge.img+8

I have done this before, but totally forget how to do it!
I want to add a horizontal line - not on the last of type - but second to last of type:


What do I do with this code. I feel like there is a (2) or something similar that I need to program/is involved. Also, I would like to "largely" use the code above/don't want new css/javascript - but would like to use the above "bones"

4 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • 1555 replies
  • October 12, 2022

MaggieGentry try this:

Hope it helps!


Forum|alt.badge.img+8
  • Author
  • Level 2 ●●
  • 43 replies
  • October 13, 2022

Thank you!
(So obvious - ha!)


Forum|alt.badge.img+8
  • Author
  • Level 2 ●●
  • 43 replies
  • August 16, 2023

@Deepak - it looks like your response to this went away. 

Do you mind reposting?

 

I want to add a horizontal line - not on the last of type - but second to last of type:

What do I do with this code. I feel like there is a (2) or something similar that I need to program/is involved. Also, I would like to "largely" use the code above/don't want new css/javascript - but would like to use the above "bones"

 

DISREGARD FIGURED IT OUT/POST BELOW


Forum|alt.badge.img+8
  • Author
  • Level 2 ●●
  • 43 replies
  • August 16, 2023

<style>
#QID13 li:nth-last-of-type(2) { border-top: 2px solid #8D8D8D4D; }
#QID13 li:nth-last-of-type(2) label { margin-top:10px; }
</style>