Answer the question
In order to leave comments, you need to log in
Last-child doesn't help. How to remove margin from the last block?
Codepen.io/anon/pen/NGvEQb
Last-child doesn't help .
And if you write directly to the class right
.right {
margin: 0;
}
.col {
width: calc((100%/3) - 30px);
margin-right: 30px;
background: green;
float: left;
}
.col {
width: calc((100%/3) - 30px);
margin-right: 45px;
background: green;
float: left;
}
Answer the question
In order to leave comments, you need to log in
What are you driving?
Maybe that's better?
Well, or if it's really hot, here's your example
!!!!!
and in general it’s time to forget about float, there has long been a property display: flex, which now all browsers are eating if ie8 support is not needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question