• Resolved dasadler

    (@dasadler)


    I used CSS (see below) that I found on this forum to insert a divider line between testimonials. It works well and I am happy… almost (smile).

    Problem is that my footer has a bolder solid line going across the page and my last testimonial also has a line. Looks a little off with two lines. Is there anyway for CSS to recognize the last testimonial on the page and NOT insert that line?

    /* START HMS TESTIMONIAL SECTION */
    /* Add Divider between testimonials */
    .hms-testimonial-container { border-bottom:1px solid black; }

    https://ww.wp.xz.cn/plugins/hms-testimonials/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Shouldn’t you do that with either classes or id’s? On the w3cschools.com (?) you’ll find more about that. I guess that you’d have to add .last or whatever you name it to the selector and then give it it’s own lay-out.

    Plugin Author Jeff K

    (@kreitje)

    Try this:

    .hms-testimonial-container:last-child { border-bottom:0px; }
    Thread Starter dasadler

    (@dasadler)

    Jeff, that worked perfectly, thank you.

    @hvh, thanks for the suggestion although I am embarrassed to admit that I don’t know anything about code, per se, I just find examples and try it with various logical (to me) modifications to see if it works.

    Programming/coding by trial and error and error and error.

    🙂
    That’s also a way to go…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Last testimonial’ is closed to new replies.