Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:40 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
  Resize table but with some limitations
PostPosted: January 20th, 2010, 10:49 pm 

Posts: 27
Hi, this is the table that I have
<style type="text/css">
table{width: 100%}
.lmenu{width: 200px}
.rmenu{width: 200px}
</style>
<table>
  <tr>
    <td class="lmenu">left menu</td>
    <td>content</td>
    <td class="rmenu">right menu</td>
  </tr>
</table>

If the window is resized the cols will shrink until the borders reach the text. Is there a way to keep the left and right cells always at 200px and the col of the middle should never be smaller than 200px. Is there a way to do it?


Top
 Profile  
 
  Re: Resize table but with some limitations
PostPosted: January 22nd, 2010, 7:41 am 
User avatar

Posts: 137
Maybe the min-width is the attribute you're looking for:
<style type="text/css">
table{width: 100%; min-width:600px;}
.lmenu{width: 200px}
.rmenu{width: 200px}
</style>>


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