sergioF sergioF - 1 year ago 67
CSS Question

HTML   not occupying vertical space

I want my

to occupy the vertical space of its parent DIV. It's being rendered in the markup but it doesn't occupy the vertical space.

I've tried removing the white-space:nowrap style on the DIV. I also tried googlearching but came up empty because everything was about DIVs, special chars and tables.

Answer Source

Please post your CSS so we can see what is going wrong. Look at this simple JSFiddle, with only background-color it renders as you want :)

div {