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!
stretching two tables
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
mikson



Joined: 07 Apr 2005
Posts: 7

PostPosted: Thu Apr 07, 2005 8:27 pm     stretching two tables Reply with quote

ok i have that problem i want to stretch 2 different tables at the same time with the same value website is made by using css, actualy those are 3 tables i want them to be stretched at the same time as main table(body)

if it is possible plz tell me how if no too bad

PEACE \,,/
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Fri Apr 08, 2005 5:46 am     Reply with quote

You can set the height using the CSS height attribute
mikson



Joined: 07 Apr 2005
Posts: 7

PostPosted: Fri Apr 08, 2005 6:37 am     Reply with quote

i know but if u set fixed height they wont stretch, it looks like

--------------------------------
| | | |
| | | |
| | | |
| | | |
| | | |
---------------------------------

i want those on the side to stretch
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Fri Apr 08, 2005 7:24 am     Reply with quote

use percentage heights
mikson



Joined: 07 Apr 2005
Posts: 7

PostPosted: Fri Apr 08, 2005 12:28 pm     Reply with quote

wont work Razz cuz i want them stretched to the bottom of a page all the time,
i mean that height of one table should be the same as height of the tallest table Very Happy
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Fri Apr 08, 2005 1:50 pm     Reply with quote

Still not sure what you want.

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.table1 {
   float: left;
   height: 100%;
   width: 200px;
   border: thin solid #FF0000;
}
.table2 {
   height: 100%;
   width: 200px;
   margin-left: 300px;
   border: thin solid #0000FF;
}
body {
   height: 96%;
}
-->
</style>
</head>

<body>
<table cellpadding="0" cellspacing="0" class="table1">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" class="table2">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
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   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial