Welcome visitor
* Login
* Register
It is currently November 18th, 2019, 4:04 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Move text to the top of the cell
PostPosted: January 26th, 2010, 9:14 pm 

Posts: 22
Hello,
I have a cell inside one table with one or two words in it. The thing is that the row expands to the higher cell and the content of this cell is showing on the middle of the said row. Do you know how can I position the text to the top of the cell?
Right now I'm using a lot of <br>'s but I think there should be a better way, isn't?


Top
 Profile  
 
  Re: Move text to the top of the cell
PostPosted: January 26th, 2010, 9:56 pm 
User avatar

Posts: 56
Yes, there is. It's called vertical-align:
<style type="text/css">
td{vertical-align: top}
</style>

if you don't want to affect all the table you can use classes.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron