Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,755 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,751 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



cell width not expanding

 
Reply to this topicStart new topic

cell width not expanding

musya
post 14 Jun, 2008 - 11:16 AM
Post #1


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 226



Dream Kudos: 50
My Contributions


okay here is a row in my table
html

<tr>
<td width="200" style="width: 200px; height: auto; background-color: #3399FF; padding-right: 3px;">
</td>
<td style="width: auto; background-color: #3399FF;">
</td>
<td width="200" style="width: 200px; background-color: #3399FF; vertical-align: top;">
<div id="content" style="padding: 5px;"><?=date("l F d, Y");?></div>
</td>
</tr>


Basically my two right columns needs to stay at 200px each and my middle column needs to expand to fit whats available. it works in FF but not in I.E and i am stuck a bit here. thank you guys for helping.
User is offlineProfile CardPM

Go to the top of the page


BetaWar
post 14 Jun, 2008 - 02:09 PM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,011



Thanked 32 times

Dream Kudos: 675
My Contributions


You need to tell the table to be 100% of rthe screen width:

CODE
<table width='100%'>
<tr>
<td width="200" style="width: 200px; height: auto; background-color: #3399FF; padding-right: 3px;">
</td>
<td style="width: auto; background-color: #3399FF;">
</td>
<td width="200" style="width: 200px; background-color: #3399FF; vertical-align: top;">
<div id="content" style="padding: 5px;"><?=date("l F d, Y");?></div>
</td>
</tr>
</table>
User is offlineProfile CardPM

Go to the top of the page

musya
post 14 Jun, 2008 - 02:12 PM
Post #3


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 226



Dream Kudos: 50
My Contributions


I have that here, still nothing.
html

<table width="100%" style="width: 100%; height: 100%;">
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 14 Jun, 2008 - 07:52 PM
Post #4


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,011



Thanked 32 times

Dream Kudos: 675
My Contributions


Try clearing your browser cache. It works for me in FF and IE.

CODE
<table width='100%'>
<tr>
<td width="200" style="width: 200px; height: auto; background-color: #3399FF; padding-right: 3px;">
</td>
<td style="width: auto; background-color: #3399FF;">
</td>
<td width="200" style="width: 200px; background-color: #3399FF; vertical-align: top;">
<div id="content" style="padding: 5px;"><?=date("l F d, Y");?></div>
</td>
</tr>
</table>
User is offlineProfile CardPM

Go to the top of the page

musya
post 18 Jun, 2008 - 08:17 PM
Post #5


D.I.C Head

Group Icon
Joined: 25 Apr, 2007
Posts: 226



Dream Kudos: 50
My Contributions


Thats weird, because It stretches on some pages, but on most the middle cell collapses, I have no idea. I still have a lot of work to do on it, so the middle column stretching is not a big priority right now but eventually it will be.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 12:28PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month