Answer the question
In order to leave comments, you need to log in
How to write a css style so that the background changes only for the first and last button?
You need to change the background of all buttons, except for the extreme ones (first and last). How to do it?
<div data-role="buttons">
<button>1</button>
<button>2</button>
<!-- ещё кнопки -->
<button>8</button>
<button>9</button>
</div>
Answer the question
In order to leave comments, you need to log in
button:not(:first-child):not(:last-child) {
background: @yourColor;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question