html - CSS display:table and padding-top -
i using display:table
in css in order place blocks in form.
but there behaviour cannot understand: when 2 blocks set display:table-cell;
, both depending on display:table
father div, impossible put margin or padding-top on 1 block, without applying on second.
a quick example: here
i want put padding-top
on second block.
how can ?
add vertical-align:top 1 want place up, , other 1 add padding need go down.
.col1 { display: table-cell; vertical-align: top; }
Comments
Post a Comment