CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 10th, 2003, 01:49 PM
laasunde laasunde is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 48 laasunde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 45 m 12 sec
Reputation Power: 5
table height & css

Here is part of my code :
Code:
<table width="640" border="2" cellpadding="0" cellspacing="0" id="mainTable">
  <tr> 
    <td colspan="2" id="logo"></td>
  </tr>
  <tr> 
    <td colspan="2" id="menu"><script type='text/javascript' src='menu_var.js'></script> 
      <script type='text/javascript' src='menu_com.js'></script></td> 
  </tr>
  <tr> 
    <td colspan="2" align="center" valign="top" id="main"> 


and here is the css that belongs to the above code :
Code:
#mainTable 
{
	width: 640px;
	height : 100%; 
	margin-left: auto; 
	margin-right: auto; 
}

#logo 
{ 	
	background-color:#ffffff;
	background-image: url(Images/logo.jpg);
	background-attachment: fixed;
	background-repeat:no-repeat;
	background-position: center center;	
	width : 640px;
	height : 85px;
}

#menu 
{	
	background-color:#fff000;	
	color : #cccccc; 
	border-style: none;
	height : 15px;
}


Logo.jpg is 640*85 pixels.

Both the logo picture and the height <td> tag (Id=logo) are 85 but the tags is show stretched out. If I remove height : 100%; from the #mainTable the logo <td> tag resumes what seems to be the correct height, why is this happening ?

Reply With Quote
  #2  
Old November 12th, 2003, 11:06 PM
khwang's Avatar
khwang khwang is offline
Über nübe
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Babylon 4
Posts: 240 khwang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 27 sec
Reputation Power: 5
I don't understand your question. You want to put content in the TD that has id="main", right?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > table height & css


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway