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-aligncss property specifies vertical alignment of inline or table-cell box.
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
Post a Comment