+ 1
Why can't I change the width?
The width of some elements in my code doesn't change. I wrote "width:0px;" and the element ids (with #) correctly. Why doesn't it work?? (Look at the bottom of CSS. The red points should limit the lines.) https://code.sololearn.com/WFsbzbcza39h/?ref=app
4 ответов
+ 1
You need to write width: 0 !important; because the other CSS rules will overwrite that one.
+ 2
True, but the ! NOT operator is for scripting languages. CSS is styling, and putting just “important” would seem like the value of something, not a note to override other styles. !important just makes it look special, IMO.
+ 1
Thanks!
+ 1
But that's not logical. Normally !important means that it's not important.