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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -