Dynadot โ€” .com Registration $8.99

Table resizing

Spaceship Spaceship
Watch

Wildchild22

Established Member
Impact
2
table not resizing

hey, i have a table which should stretch vertically to fit all the content in.... it works fine in firefox, but i took a look in Internet Explorer, and it doesn't.... any ideas why?

heres the code:

Code:
<table class="bordertable" cellpadding="0" cellspacing="0" width="180">
<tr> 
  <td align="center" class="tablehead" height="21" valign="middle"><b><p>Affiliates</p></b></td>
</tr>
<tr>
<td><iframe SRC="http://i.domaindlx.com/ballam/affiliates.asp" width="175" frameborder="0"></iframe></td>
</tr>
</table>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Please provide a link to the page with this code on, so we can see what you mean :)
 
0
•••
You need to put in px for starters. i.e width="180px" otherwise certain browsers wont know if its pixels, percent or parrots.. As for the actual problem its kinda hard to tell without seeing the page. :)
 
0
•••
adman_9000 said:
You need to put in px for starters. i.e width="180px" otherwise certain browsers wont know if its pixels, percent or parrots..

Ignore this. It's wrong. Required units only apply in CSS. It's default for width attributes to accept integers and display as px/pixels.
 
0
•••
0
•••
You could add: height="200" or whatever fixed size you want, but because the content of the table is not hard-coded (coming from an outside source) I don't know if the table can be made "100%". Try this code (only difference from yours is I added the height="200"...

<table class="bordertable" cellpadding="0" cellspacing="0" width="180">
<tr>
<td align="center" class="tablehead" height="21" valign="middle"><b><p>Affiliates</p></b></td>
</tr>
<tr>
<td><iframe SRC="http://i.domaindlx.com/ballam/affiliates.asp" height="200" width="175" frameborder="0"></iframe></td>
</tr>
</table>
 
0
•••
do you mean so that you don't have the scroll bars?

you can't do this with a normal iframe. You will have to use a php include:

PHP:
include "this_page.html";

Sorry, if you don't have php, then you will have to use an iframe anyway, and that means that you have a scroll bar!
 
0
•••
Crabby said:
Ignore this. It's wrong. Required units only apply in CSS. It's default for width attributes to accept integers and display as px/pixels.


my bad. been a while since i used anything other than css.
**sheepish exit stage left**
 
0
•••
i used a php include the the affiliates and it really messed everything up.... i could sort it but for the next few days i need the site to look good, not messed up lol
 
0
•••
well, an iframe won't work. You will need to set the EXACT height and then add ( as an attribute )
Code:
scrollbars="no"
I don't use iframes, so that could be wrong.
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back