Cytat(pabito @ 27.08.2013, 11:48:51 )

ale jak mam go wyliczyć, jeżeli wiesz za każdym razem ma inna wysokość
Czy definijuesz ta wysokosc w PHP czy ona sama wychodzi?
Mozesz tez uzyc JS do pobrania wysokosci i natej podstawie dawac odpowiedni padding.
Ale ja jak koledzy użyłbym vertical-align:middle, jeżeli nie chcesz budować tabeli dajesz display dla np. DIVa:
inline-table The element is displayed as an inline-level table
table The element is displayed as a table
table-caption The element is displayed as a table caption
table-cell The element is displayed as a table cell
table-column The element is displayed as a table column
table-column-group The element is displayed as a table column group (like <colgroup>)
table-footer-group The element is displayed as a table footer row group
table-header-group The element is displayed as a table header row group
table-row The element is displayed as a table row
table-row-group The element is displayed as a table row group