Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Table resizing

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Please provide a link to the page with this code on, so we can see what you mean :)
 
0
Close
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
Close
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
Close
0
Close
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
Close
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
Close
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
Close
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

A browser tab with a favicon next to the page title
Search members
You can now search for members by name, company, location and more. Open the search at the top of any page and choose Members. You will...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back