Old 17-08-2005, 02:03   #1 (permalink)
davidbabylon
Registered User
 
davidbabylon's Avatar
 
Join Date: Jul 2005
Location: Ft. Lauderdale, FL
Posts: 5
Send a message via AIM to davidbabylon Send a message via MSN to davidbabylon Send a message via Yahoo to davidbabylon
Dreamweaver help! PLEASE!

This may seem like a simplistic question but I am relatively new to using Dreamweaver. When creating a website using tables, how can I set all the tables and tables within those tables to default to the very top of the cell they are within? I set the margins to 0 so the website itself is directly aligned with the browser window but the tables inside the main body default the the center of each cell. I'm pulling my hair out trying to figure it out.

I have tried inputing the align="top" tag but it doesn't seem to work. I really need help and would appreciate anyone who has any suggestions/answers.

Thanks.
  Reply With Quote
Old 17-08-2005, 03:05   #2 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
use css

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css" media="screen"> table, table td, table td table {vertical-align:top; border:1px solid #CCC;} #mainTable {height:800px; width:100%;} #mainTable table {width:200px;} </style> </head> <body> <table id="mainTable"> <tr> <td><table> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </td> <td> <table> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </td> <td><table> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table></td> </tr> <tr> <td>Content</td> <td>Other content </td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </table> </body> </html>

And better yet, don't use tables for layout

Last edited by emil : 17-08-2005 at 07:57. Reason: put the style into the head, where it's supposed to be
  Reply With Quote
Old 17-08-2005, 06:42   #3 (permalink)
mx
fucksocks™
 
mx's Avatar
 
Join Date: Jun 2005
Location: in the boosh
Posts: 1,629
valign="top"
  Reply With Quote
Old 17-08-2005, 10:02   #4 (permalink)
davidbabylon
Registered User
 
davidbabylon's Avatar
 
Join Date: Jul 2005
Location: Ft. Lauderdale, FL
Posts: 5
Send a message via AIM to davidbabylon Send a message via MSN to davidbabylon Send a message via Yahoo to davidbabylon
Thank you guys, both, for the responses. I'll try working on the site today and let hopefully won't have anymore questions.

emilpaun - I know CSS is the only way to go at this point but I am not comfortable with my knowledge of Stylesheets to builds sites from scratch using them. Yet. I will in time, I just need a few days where I can mess around and get the feel and hang for it.

Thanks again guys.
  Reply With Quote
Old 17-08-2005, 10:10   #5 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
that's a good attitude

You could still use css, even if you don't feel comfortable enough to use divs for layout. It'll be less time consuming later on, should you change your mind.
  Reply With Quote
Old 17-08-2005, 10:19   #6 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,568
Emil, you are the CSS police !!
__________________
fuck signatures
  Reply With Quote
Old 17-08-2005, 10:21   #7 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
Quote:
Originally Posted by weldo
Emil, you are the CSS police !!
No, I just see now how easier it would've been had I learnt HTML properly at the beginning. Just trying to help with what I can
  Reply With Quote
Old 17-08-2005, 10:25   #8 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,568
I know, I know.... I should have added a

We had a work placement lad in work last week who wanted to learn a bit of HTML, and I started going on about current methods and deprecation of the code that someone else was showing him....

There is no point in learning all the old methods that we learnt along the way, I suppose...
__________________
fuck signatures
  Reply With Quote
Old 17-08-2005, 10:28   #9 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
  Reply With Quote
Reply



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

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8