html - Vertical-align not working inside of td -


i trying vertically align div (which inside of td) @ top, vertical-align: top not working. here fiddle:

http://jsfiddle.net/hredw/1/ (i want yellow b @ top)

how can this? also, amount of a's inside of second td dynamic - height of table dynamic.

the vertical-align css property specifies vertical alignment of inline or table-cell box.

read more vertical-align

therefore, have apply vertical-align property td element:

.first {     background-color:black;     min-height: 10px;     min-width: 10px;     vertical-align: top; } .first div {     background-color:yellow; } .second {     background-color:green;     min-height: 10px;     width: 10px; } 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -