D
D
Derver2019-06-05 12:40:11
css
Derver, 2019-06-05 12:40:11

How to disable after on last element in sass?

there is a code

.how
        display: table-cell
        position: relative
        &:after
            content: url(../img/howsArrow.png)
            position: absolute
            top: 32px
            left: 189px

please tell me how to make last-child for after in sass,
this option is not suitable(
.how
        display: table-cell
        position: relative
        &:after
            content: url(../img/howsArrow.png)
            position: absolute
            top: 32px
            left: 189px
            &:last-child:after
                    content: ' '

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-06-05
@Derver

https://jsfiddle.net/4Lupq9ks/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question