Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-15-2005, 10:22 AM   #1
Banned
 
mysterio2099's Avatar
 
Join Date: Aug 2003
Posts: 349
Send a message via AIM to mysterio2099 Send a message via MSN to mysterio2099 Send a message via Yahoo to mysterio2099
Unhappy Tables - size problem

quick and simple:

My tables a raping me. This is a simple corrected problem, but I still need help. When I do
HTML Code:
height="--"
and
HTML Code:
width="--"
the page decides to tell me, "Go die, I'm not doing it." If I put
HTML Code:
height="5"
on a
HTML Code:
<td>
tag, it will use
HTML Code:
height="100%"
instead and fill the entire table.

How do I stop the raping guys? ...how do I make the pain go away?
mysterio2099 is offline   Reply With Quote
Old 07-15-2005, 12:13 PM   #2
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Let me start off by asking for the entire code. Are you using a WYSIWYG Program and writing HTML from there, or are you using a Notepad-like application?

kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman
kram 2.0 is offline   Reply With Quote
Old 07-15-2005, 01:38 PM   #3
Banned
 
mysterio2099's Avatar
 
Join Date: Aug 2003
Posts: 349
Send a message via AIM to mysterio2099 Send a message via MSN to mysterio2099 Send a message via Yahoo to mysterio2099
I'm using Dreamweaver.

This is an example of the code. This might come out fine, but if I'm going one TD at a time to test, it doesn't work..the TDs get stretched full table wise.

HTML Code:
<table border="0" bgcolor="#FFFFFF" width="750" height="400">
<tr>
<td width="750" height="5"></td>
</tr>
<tr>
<td width="750" height="300"></td>
</tr>
<tr>
<td width="750" height="95"></td>
</tr>
</table>
mysterio2099 is offline   Reply With Quote
Old 07-15-2005, 01:48 PM   #4
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Quote:
Originally Posted by mysterio2099
I'm using Dreamweaver.

This is an example of the code. This might come out fine, but if I'm going one TD at a time to test, it doesn't work..the TDs get stretched full table wise.

HTML Code:
<table border="0" bgcolor="#FFFFFF" width="750" height="400">
<tr>
<td width="750" height="5"></td>
</tr>
<tr>
<td width="750" height="300"></td>
</tr>
<tr>
<td width="750" height="95"></td>
</tr>
</table>
Your TDs need to fill the entire space allotted by the Table parameter. In other words, if your deleted the second TD (the height 300 pixels one), the first and third TD need to fill that space.
HTML Code:
<table border="0" bgcolor="#FFFFFF" width="750" height="400">
<tr>
<td width="750" height="5"></td>
</tr>
<tr>
<td width="750" height="95"></td>
</tr>
</table>
95% of the 400 pixels will be filled by the second TD. 5% of the 400 pixels will be filled by the first TD.

I hope I answered your question here.

kram
kram 2.0 is offline   Reply With Quote
Old 07-15-2005, 02:00 PM   #5
Banned
 
mysterio2099's Avatar
 
Join Date: Aug 2003
Posts: 349
Send a message via AIM to mysterio2099 Send a message via MSN to mysterio2099 Send a message via Yahoo to mysterio2099
It told me I can't do what I want but that's cool. I'll work around it. Thanks man.
mysterio2099 is offline   Reply With Quote
Old 07-15-2005, 02:07 PM   #6
Moderator
Staff
Premium Member
 
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
Quote:
Originally Posted by mysterio2099
It told me I can't do what I want but that's cool. I'll work around it. Thanks man.
There's always an option of creating that extra TD and doing nothing with it - that's the technique commonly used when you have a Table you'd like to extend but don't want to fill a TD.

kram
kram 2.0 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:53 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2