bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

.table th, .table td should have vertical-align set to middle, not top

Open donaldallen opened this issue 14 years ago • 3 comments

I created a table with a button in one of the rows which made the row larger. The button looked aligned properly, but not the text in the other cells. Changing vertical-align:top to middle fixes this.

donaldallen avatar Feb 28 '12 22:02 donaldallen

It's top so that cells with text that wraps to more than 1 line all line up. You're welcome to change it yourself though in any of your own projects.

mdo avatar Mar 01 '12 06:03 mdo

what about vertical-align: baseline then? so text wrapped to multiple lines still line up nicely with one liner cell and cell with button

j03w avatar Aug 15 '12 22:08 j03w

Im facing a similar problem, i created a table with rows and columns in a td tag i added a button it looks properly aligned in middle of cell, but no texts in the other cells. I tried to apply the following

td { vertical-align:middle; }

But not success

If i place css style in a style attribute it is applied ... <td style="vertical-align:middle;">some text</td> ...

I hope you can help me and thanks for your time.

ilmoralito avatar Dec 16 '14 18:12 ilmoralito