+ 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

30th Jan 2019, 2:30 PM
C. Scheler
C. Scheler - avatar
4 ответов
+ 1
You need to write width: 0 !important; because the other CSS rules will overwrite that one.
31st Jan 2019, 1:50 AM
Rowsej
Rowsej - avatar
+ 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.
1st Feb 2019, 4:52 AM
Rowsej
Rowsej - avatar
+ 1
Thanks!
31st Jan 2019, 7:00 AM
C. Scheler
C. Scheler - avatar
+ 1
But that's not logical. Normally !important means that it's not important.
31st Jan 2019, 1:41 PM
C. Scheler
C. Scheler - avatar