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!
alignment - this is confusing for me
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
gausie



Joined: 01 Aug 2004
Posts: 1

PostPosted: Sun Aug 01, 2004 6:53 am     alignment - this is confusing for me Reply with quote

Code:

<html>
<head>
  <title>Pranking</title>

<script LANGUAGE="JavaScript">
<!--
if (document.images)
{
  cheese= new Image(138,131);
  cheese.src="./images/cheese/logo.gif";

  titch= new Image(138,131);
  titch.src="./images/titch/logo.gif";

  hankey= new Image(138,131);
  hankey.src="./images/hankey/logo.gif";
}
//-->

function roll(name,over)
{
   if(window.document.images)
   {
      if (over)
         window.document.images[name].src = "./images/" + name + "/logo_on.gif";
      else
         window.document.images[name].src =  "./images/" + name + "/logo.gif";
   }
}
</script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body topmargin="0" leftmargin="0">

<table width="100%" valign="middle">
<tr>
<td width="100%">
<table width="100%" valign="bottom"><tr><td colspan="5"><p align="center">{last}</p></td></tr></table>
</td>
</tr>
</table>

<table width="100%" valign="middle">
<tr>
<td width="50%">
</td>
<td>

<a href="sessionset.php?char=cheese" onMouseOver="roll('cheese',true)" onMouseOut="roll('cheese',false)">
<img name="cheese" border="0" src="./images/cheese/logo.gif"></a>
</td>
<td>
<a href="sessionset.php?char=titch" onMouseOver="roll('titch',true)" onMouseOut="roll('titch',false)">
<img name="titch" border="0" src="./images/titch/logo.gif"></a>
</td>
<td>
<a href="sessionset.php?char=hankey" onMouseOver="roll('hankey',true)" onMouseOut="roll('hankey',false)">
<img name="hankey" border="0" src="./images/hankey/logo.gif"></a>

</td>
<td width="50%">
</td>
</tr>
</table>

<div valign=bottom align=center>{count}</div>
</body>
</html>


can someone fix this so the content in tables is all in the middle of the page and the {cont} bit is at the bottom?

at the moment its all at the top - i would like it to look like this...



thanks

sam
Corey Bryant



Joined: 15 May 2004
Posts: 8154
Location: Castle Rock CO USA

PostPosted: Mon Aug 02, 2004 4:02 am     Reply with quote

On this line (about line 43):
Code:
<table width="100%" valign="middle">

change to
Code:
<table width="100%" valign="middle" height="100%">
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
 
HOSTING / DESIGN
MAKE MONEY

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