HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
aligning to the top with tables
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
seadog



Joined: 26 Apr 2008
Posts: 5

PostPosted: Mon Apr 28, 2008 4:29 pm     aligning to the top with tables Reply with quote

Im making a template in an extremely hard way. im using tables to make the layout and im using tables to make the posts and shit. im using <br> tags to make the tables in the center of the main layout stand at the top of the template. is there anyway to make these align center and top without having to use the <br> tags to do it.

you can see what i mean here
http://fpsroster.freehostia.com/

the post thats named welcome to clan nation. i want that to sit right under the banner right at the top. but in order to do that i have to use <br> tags... is there an alternative way?
Straystudio



Joined: 14 Apr 2008
Posts: 238
Location: Nord Italy

PostPosted: Mon Apr 28, 2008 6:03 pm     Reply with quote

mmh ... tables inside tables; yes, it needs a while to be studied.
It seems as You are using series of <br> as vertical spacers.
Take care, how much a <br> spaces, depends on font size; in this case, the default font the User has set with Browser. So, things may vary a bit.

Be sure main tables won't want height="100%"
However, to align tables: either assign

align="left/center/right" valign="top/middle/bottom"

to the upper <td> driving them, or use

<div align="left/center/right">
( the whole table )
</div>

this last not for vertical-alignment.
align="" as Attribute of table Element itself, was deprecated; same for bgcolor="".

<!DOCTYPE xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN>
does not recognize height percentuage with table.
seadog



Joined: 26 Apr 2008
Posts: 5

PostPosted: Tue Apr 29, 2008 9:24 am     Reply with quote

nothing worked. i tried putting the tables in div tags. but it didnt work so i put it in Dreamweaver and dreamweaver says theres no valign for div tags. so im guessing it wont work because div doesnt recognize the command valign? for some reason i cant find to available option valign for any tag. i know its there but i think its a CSS command. i uploaded the template again you can check the source if u could =)
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial