Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 14th, 2005, 10:26 PM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Basic Table Help

Could someone please give me the basic code for a table? I've used them before but I have not had to make one in code.
crawforddavid2006 is offline   Reply With Quote
Old Jun 14th, 2005, 10:42 PM   #2
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
How can i make a table move down with the page?
crawforddavid2006 is offline   Reply With Quote
Old Jun 14th, 2005, 11:00 PM   #3
mod812
Newbie
 
Join Date: Jun 2005
Posts: 1
Rep Power: 0 mod812 is on a distinguished road
<table width="100%" height="100%" border="0">
<tr>
<td>This is the text you want to show up in the first cell</td>
<td>This is the second cell</td>
</tr>
<td>second row first cell</td>
<td>second row second cell</td>
</tr>
</table>
Hope that helps a bit
mod812 is offline   Reply With Quote
Old Jun 15th, 2005, 7:27 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
He forgot the second <tr>. Also, indenting it might help you understand the construct.
<table width="100%" height="100%" border="0">
	<tr>
		<td>This is the text you want to show up in the first cell</td>
		<td>This is the second cell</td>
	</tr>
	
	<tr>
		<td>second row first cell</td>
		<td>second row second cell</td>
	</tr>
</table>
As for keeping it in the same place, you can use CSS for any decent browser, and JavaScript for Internet Explorer. Look it up: www.yourhtmlsource.com
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 15th, 2005, 1:56 PM   #5
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Thanks that helps a lot. It sucks doing a web page all in code :-)
crawforddavid2006 is offline   Reply With Quote
Old Jun 15th, 2005, 5:05 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Sacrilege!

Eventually you'll become used to it - then WYSIWYG editors'll just piss you off.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 16th, 2005, 10:14 PM   #7
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
I am using Jcreator to make my web page(its better then notepad). How can i make another table on the same page but have it to the left and at the same height?
crawforddavid2006 is offline   Reply With Quote
Old Jun 17th, 2005, 12:24 AM   #8
c0ldshadow
Unverified User
 
c0ldshadow's Avatar
 
Join Date: Jun 2005
Location: NJ
Posts: 23
Rep Power: 0 c0ldshadow is on a distinguished road
i thought that using the "height" in tables was illegal despite some browsers supporting it..... if it is legal i remember it being frowned upon or something... am i off here?
__________________
DeepTide

The way is shut.
It was made by those who are dead
and the Dead keep it.
The way is shut.
c0ldshadow is offline   Reply With Quote
Old Jun 17th, 2005, 3:49 PM   #9
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Sorry what i meant was to have the tops of both table being at the same level so that they are next to each other and not below each other.
crawforddavid2006 is offline   Reply With Quote
Old Jun 21st, 2005, 12:31 AM   #10
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 254
Rep Power: 4 melbolt is on a distinguished road
tip to help you remember the tags

the TR in <TR> means "table row", use this when you want to start a new horizontal row in your table.

the TD in <TD> means "Table Data", these are the squares of data contained within each row, you can have multiple TD's inside of a row, which makes up your columns.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC