Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I align something in a <td> in the top-left corner - without aligning everything?

Tags:

html

css

Say I have something that looks like this: http://jsfiddle.net/Dtsjh/

How do I align the numbers in each cell to be in the top-left corner of each cell - without aligning the words?

Preferably in just HTML/CSS - but if you can't do it any of those, then jQuery is fine.

like image 789
marcamillion Avatar asked Sep 06 '25 02:09

marcamillion


1 Answers

td {
vertical-align: top;
text-align: left;
}

put the above css for the row of the table..And it works. If you want specific to that td, put the id of the td in css.

like image 58
ImHigh Avatar answered Sep 07 '25 20:09

ImHigh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!