It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

HTML code for a Table

HTML code for a Table

Postby stephennpa on Mon Jul 21, 2008 9:41 pm

Not sure what is wrong with this, maybe I have some extra codes that I don't need or something. Any help is appreciated!




<table border=0 width="71%" height="32%" rules=cols>
<tr>
<td>
<table border=2 width=800 height=600>
<tr>
<td>
</td>
<td align=right>
</td>
</tr>
<tr rowspan=2>
<td>
<table cellpadding=5>
<tr>
<td>
</td>
</tr>
</table>
</td>
<td bgcolor="FF0000">
</td>
</tr>
</table>
stephennpa
 
Posts: 3
Joined: Tue Apr 01, 2008 11:45 pm

Postby rangana on Tue Jul 22, 2008 12:07 am

What? could you please repharase you question on what problem are you experiencing?

And also, you've got a good list of deprecated attributes :(

And as a parting thought, tables was'nt intended for layouts.

Hope it keeps you going ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby stephennpa on Tue Jul 22, 2008 12:15 am

rangana wrote:What? could you please repharase you question on what problem are you experiencing?

And also, you've got a good list of deprecated attributes :(

And as a parting thought, tables was'nt intended for layouts.

Hope it keeps you going ;)
The table is not showing up normally for some reason. Trying to learn as I go along...not sure what mistakes are in this coding if that is the problem. 1. Does the table border on line 1-have to be 100% total...since this one has width 71% and height 32% ? 2. Can the cellpadding/cellspacing properties be on their own lines or do they need to be together? 3. Line 8--to I need to include the valign property with the align?
stephennpa
 
Posts: 3
Joined: Tue Apr 01, 2008 11:45 pm

Postby rangana on Tue Jul 22, 2008 12:29 am

I'm sorry, but what you were asking are deprecated attributes, which one should'nt advocate on using except for the width attribute.

Width 100% and height 32% does'nt makes sense since the unit % takes the width and height of its parent element. So the parent element of the table is the body element. Whatever the width and height of the body element will be 72% the width and 32% height of the table.

You might find these links useful:
http://www.w3.org/TR/html401/struct/tables.html
http://webdesign.about.com/od/tables/a/aa121597.htm
http://www.w3schools.com/tags/tag_table.asp

Hope makes sense.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby chubzyko on Thu Jul 31, 2008 10:10 pm

what kind of table are you trying to make? with those positioning of codes, you'll come up with an unknown kind of table. Arrange the position of your codes.

if you start with a <tr> end the content with </tr>
or if you start with a <td> end it with </td>

review your codes dude.
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines


Who is online

Users browsing this forum: No registered users and 4 guests