Welcome visitor
* Login
* Register
It is currently March 26th, 2019, 6:31 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
  Table size HELP!
PostPosted: October 26th, 2009, 2:28 pm 

Posts: 17
I have a table and it changes it size depending on its content and the size of the browser window. Do you know if it's possible to keep it always the same size?

Thank you.


Top
 Profile  
 
  Re: Table size HELP!
PostPosted: October 26th, 2009, 3:01 pm 

Posts: 27
Give it static dimensions:
<style type="text/css">
table{width: 400px; height: 100px}
//you can do it also for each cell using classes
.smallCell{width: 10px; height: 10px}
</style>
The table will expand to fit its content when it's bigger than the table. The column will be as wide as the bigger cell and a row as tall as the tallest cell.


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