How come my font changes in ´.box´ but not my ´.red-box´ class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How come my font changes in ´.box´ but not my ´.red-box´ class?

https://code.sololearn.com/WkNgKFmdlrvN/?ref=app In My CSS I played around with what features work where and apparently 30px font works best in my ´.box´ class. But in ´.red-box´ the ´font-size: 30px;´ doesn't work AND by box shrinks vertically. I just don't understand. Please break this down. Yes I borrowed this from FreeCodeCamp

7th Sep 2019, 10:40 PM
coolperson69
coolperson69 - avatar
1 Answer
+ 1
That is because you mentioned font-size: 10px; in box class
13th Sep 2019, 2:39 PM
tulasi