DIV sizing difficulties #17129
-
I am having some difficulty with my html/styling of some DIVs. Whenever I add a particular DIV inside another DIV, the height of the parent DIV expands unnecessarily. When I remove the inner DIV, the height is as expected/desired. Can anyone help me understand why adding the inner DIV is causing the height expansion of the parent? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are some typos in the html: You wrote I can't really explain why, though. |
Beta Was this translation helpful? Give feedback.
There are some typos in the html: You wrote
<div calss="col-1">
("calss" instead of "class"). So thecol-1
doesn't actually apply there.When you correct it, then it works as you wanted.
I can't really explain why, though.
My guess is that inside a
row
, having a mixture ofcol-N
and non-col
children isn't allowed and is causing some weird behavior.