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 October 27th, 2003, 02:26 AM
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 stretch css

How can I set the height of a table so that it covers the browser from top to bottom regardless of resolution using css ?

Reply With Quote
  #2  
Old October 27th, 2003, 04:59 AM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,744 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 12 h 2 m 26 sec
Reputation Power: 171
Code:
<html>
 <head>
  <style>
   table#main
    {
      width:100%;
      height:100%;
    }
  </style>
 </head>
 <body>

  <table id=main>
   <tr>
    <td>foo..</td>
   </tr>
  </table>

 </body>
</html>

Reply With Quote
  #3  
Old October 27th, 2003, 05:14 AM
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
I cannot get it to work, here is my style properties,

#mainTable
{
border-top-width : 1px;
border-bottom-width : 1px;
border-left-width : 1px;
border-right-width : 1px;
border-color: black;
width: 640px;
height : 100%;
margin-left: auto;
margin-right: auto;
}


Look here to see the pages Im working on.

Reply With Quote
  #4  
Old October 27th, 2003, 05:56 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,622 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 2 h 13 m 2 sec
Reputation Power: 548
to get the % height to work you need to
set a height to the parent element,

like this

Code:
html, body {
	height:100%;
}


you need the html to make it work in mozilla.

Reply With Quote
  #5  
Old October 27th, 2003, 06:00 AM
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
Thanks a lot dude.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > table stretch 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 4 hosted by Hostway