Can someone explain to why I don't see this div on the screen even though I've sized it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone explain to why I don't see this div on the screen even though I've sized it

https://code.sololearn.com/Wl5OE9PaP7oh/?ref=app

16th Aug 2023, 4:35 PM
Indiphile Menziwa
Indiphile Menziwa - avatar
5 Answers
+ 1
It's working fine now not need to worry,thanks. But it was id="grid...
17th Aug 2023, 6:59 AM
Indiphile Menziwa
Indiphile Menziwa - avatar
0
you used "max-width" instead of simply "width"
16th Aug 2023, 4:48 PM
Apollo-Roboto
Apollo-Roboto - avatar
0
I used width before using max-width...so that's not it. That doesn't have any effect but in essence max-width is better. Still you're not wrong I just don't know whats happening it's supposed to work when I use height... but it's fine now when I put an element inside maybe that's why, maybe you can't use vh without a child element
16th Aug 2023, 4:55 PM
Indiphile Menziwa
Indiphile Menziwa - avatar
0
What is the div element with id/class you are referring to in the code?
16th Aug 2023, 5:37 PM
Dragon RB
Dragon RB - avatar
0
Indiphile Menziwa You missed ">" in line 8 (HTML code) by the way.
17th Aug 2023, 4:51 PM
Dragon RB
Dragon RB - avatar