Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maintaining Table Size 2

Status
Not open for further replies.

Gatorajc

MIS
Mar 1, 2002
423
US
I know I should know better but how do I get a table to maintain its size when the favorites or history bar is open on the side. Do I have to change to pixels which I really do want to do. Right now I have the table at Width 100%, I know what that does but I thought there was a way from keeping it from getting all squished together. AJ
I would lose my head if it wasn't attached. [roll1]
 
Hi mate,

One way to make sure that a cell never goes below a certain size is to include a 1x1 pixel transparent gif and resize it to suit your needs.

For example:

<table width=&quot;100%&quot;>
<tr>
<td><img src=&quot;blank.gif&quot; width=&quot;100&quot; height=&quot;1&quot;></td>

Hope this helps Wullie

sales@freshlookdesign.co.uk

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Just as an addition to Wullie has said above that same gif will be useful to you for all kinds of other spacings as well since you can use them for everything from spacing between images to spacing between text lines.

Chris I always makes things much harder than they should be... that way later I can slap myself in the forhead after spending hours and hours on two lines of code and say to myself &quot;DUH!&quot;
 
Oops... forgot to mention...

When using that transparent gif it is often helpful to give your graphic a border so that you can see it until you have your page items in their proper positions.

Something like this...
<img src=&quot;sp.gif&quot; width=&quot;1&quot; height=&quot;10&quot; border=&quot;1&quot;>
I always makes things much harder than they should be... that way later I can slap myself in the forhead after spending hours and hours on two lines of code and say to myself &quot;DUH!&quot;
 
Thanks I thought there was another way but that will work. AJ
I would lose my head if it wasn't attached. [roll1]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top