+ 7

What does the !important means in css

Example . home{ margin:30px!important ; }

18th Nov 2019, 6:44 AM
Chekwube Victor Chukwuemeka
Chekwube Victor Chukwuemeka - avatar
3 Respuestas
+ 1
It means any other same style used for that class won't get applied (i.e any other margin style applied to the class="home" won't be effective)
19th Nov 2019, 5:29 AM
Hayzeed
+ 4
Once set to important, the styles will not get overridden..
18th Nov 2019, 6:50 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
important property in CSS is used to provide importance than normal property. ignore all the subsequent rules, and apply ! important rule
3rd Dec 2019, 4:32 AM
Shaili Shah
Shaili Shah - avatar