简体   繁体   中英

CSS vertical align icon next to block of text inside cell

I thought this was gonna be a simple verical-align:middle situation but I can't seem to make that work. Maybe i am missing something on a parent element.

Here is a JSfiddle with a visual of my issue: http://jsfiddle.net/5QFAw/

I am trying to vertically align the "remove" x's next each th b in the middle.

Im stumped. Ideas?

What you think about this? //jsfiddle.net/5QFAw/2/

Obvious you will need to move those inline styles to the stylesheet

If the height of the row is unknown or not fixed, then your best bet is to put the "X" into another td . Like this: http://jsfiddle.net/5QFAw/3/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM