[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-06-2005, 10:30 AM   #1 (permalink)
NamePros Regular
 
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
93.00 NP$ (Donate)

Wildchild22 is an unknown quantity at this point


Table resizing

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>
Wildchild22 is offline  
Old 07-07-2005, 01:13 PM   #2 (permalink)
NamePros Member
 
Join Date: Aug 2004
Posts: 74
50.00 NP$ (Donate)

Crabby is an unknown quantity at this point


Please provide a link to the page with this code on, so we can see what you mean
__________________
michael
Crabby is offline  
Old 07-07-2005, 01:39 PM   #3 (permalink)
New Member
 
Join Date: Jan 2005
Posts: 19
29.00 NP$ (Donate)

adman_9000 is an unknown quantity at this point


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.
adman_9000 is offline  
Old 07-08-2005, 12:58 AM   #4 (permalink)
NamePros Member
 
Join Date: Aug 2004
Posts: 74
50.00 NP$ (Donate)

Crabby is an unknown quantity at this point


Quote:
Originally Posted by adman_9000
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.
__________________
michael
Crabby is offline  
Old 07-08-2005, 09:10 AM   #5 (permalink)
NamePros Regular
 
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
93.00 NP$ (Donate)

Wildchild22 is an unknown quantity at this point


www.ballamness.info/site2

im refering to the two tables on the right
Wildchild22 is offline  
Old 07-08-2005, 09:24 AM   #6 (permalink)
DomainersUniversity.com

Team Leader

 
Gene's Avatar
 
Join Date: Feb 2005
Location: Oswego, NY
Posts: 4,718
96.11 NP$ (Donate)

Gene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond reputeGene has a reputation beyond repute

Ethan Allen Fund Cancer Survivorship Baby Health Cystic Fibrosis Marrow Donor Program Parkinson's Disease Child Abuse
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"...

Quote:
<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>
__________________
.
.

Gene is offline  
Old 07-08-2005, 09:31 AM   #7 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


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 Code:
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!
PoorDoggie is offline  
Old 07-09-2005, 12:04 PM   #8 (permalink)
New Member
 
Join Date: Jan 2005
Posts: 19
29.00 NP$ (Donate)

adman_9000 is an unknown quantity at this point


Quote:
Originally Posted by Crabby
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**
adman_9000 is offline  
Old 07-09-2005, 01:08 PM   #9 (permalink)
NamePros Regular
 
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
93.00 NP$ (Donate)

Wildchild22 is an unknown quantity at this point


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
Wildchild22 is offline  
Old 07-09-2005, 03:12 PM   #10 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice


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.
PoorDoggie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML page inside a table benc811 Programming 19 04-23-2005 03:40 PM
table width WYSI[not]WYG okravetz Web Design Discussion 4 03-19-2005 12:43 AM
Simple Table Question.... softz Programming 2 01-24-2005 02:47 PM
Table Vertical Alignment flatsix Web Design Discussion 3 01-11-2005 12:25 AM
Tutorial: Getting Started With MySQL (The Basics) deadserious Webmaster Tutorials 3 04-18-2004 01:17 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:49 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85