CSS - overwriting certain selectors
Page 1 of 1
Interinactive
VIP Member



Posts: 29151

PostPosted: Mon, 25th Nov 2013 09:55    Post subject: CSS - overwriting certain selectors
Take the following as an example:

Quote:
#recent ul li:nth-child(3),
#recent ul li:nth-child(4),
#recent ul li:nth-child(9) {
width: 49.79166666666667%;
margin: 0 0 0 0.41666666666667%;
}


Now to change that in a media query I generally write the same selectors again, and I never use !important

Is there a quick way to overwrite every selector related to the list items there in CSS?
Back to top
Areius




Posts: 14707

PostPosted: Mon, 25th Nov 2013 09:56    Post subject:
Use !important Smile


PC: Yes. Console: No.
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group