Why my "height:" not working in CSS with div and span | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my "height:" not working in CSS with div and span

Emergency/ frustration

8th Apr 2023, 9:50 AM
RDR Riderd Yt
RDR Riderd Yt - avatar
2 Answers
+ 5
Share your code then we will help For eg Set the height and width of a <div> element: div { height: 200px; width: 50%; ... Set the height and width of another <div> element: div { height: 100px; width: 500px; ... This <div> element has a height of 100 pixels and a max-width of 500 pixels: div { max-width: 500px; height: 100px
8th Apr 2023, 10:06 AM
Herobrine
Herobrine - avatar
+ 5
Frustration: No code. Please link your code if you want us to check on it.
8th Apr 2023, 10:05 AM
Lisa
Lisa - avatar