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; } 

http://jsfiddle.net/nw8dg/5/


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -