Monday, 20 February 2017

html - How do I select the first class from a div in CSS?

This is my html code:



















And this is the css part:



.role-maine .test:first-of-type {margin-left:0px}
.role-maine .test {margin-left:30px;}


So I do I assign de margin-left:0px for the first class, which has the name "test" ?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...