HTML Tutorial


 /help/HTML Help Forum   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!
Problem with vertical alignment
Post new topic   Reply to topic    HTML Help Forum -> HTML Table
View previous topic :: View next topic  
Author Message
Maggical



Joined: 10 Jan 2005
Posts: 46
Location: Rosario - Argentina

PostPosted: Sat Jun 20, 2009 2:50 pm     Problem with vertical alignment Reply with quote

Hi there, I'm working on a project and it seems I'm asleep now or something, because I can't seem to figure this problem out, and it should be really easy...

I have this site skecth for you to see:

http://www.javierespana.com/clientes/tana_clief/

I can't figure out why the word "Carrito" is displaying at the bottom of the cell instead of at the top as it should be...

Here's the code for the div + table containing the header...

Code:

<div class="header_site">
<table width="940px" cellpadding="0" cellspacing="0" border="0">
   <tr>
      <td colspan="2"><img src="images/clear.gif" height="10px" border="0" /></td>
   </tr>

   <tr>
      <td width="183px" align="left" valign="top"><a href="#"><img src="images/logo.jpg" class="logo" border="0" alt="Tana Clief - Ir al Home" /></a></td>
      <td width="757px" align="right" valign="top">Carrito</td>
   </tr>
   <tr>
      <td colspan="2"><div class="separador"></div></td>
   </tr>
</table></div>


Thanks a lot,

Javier
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4273
Location: MS

PostPosted: Sat Jun 20, 2009 6:44 pm     Reply with quote

Might take a read through of this first: Images, Tables, and Mysterious Gaps

Or try this:

Code:
<td width="757" align="right" valign="middle">Carrito</td>

When setting attibutes using non-css, do not put a dimension. Might could add some padding for cell.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> 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 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

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