iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2004, 09:33 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default table height with css

This is such a simple question, it seems I should know the answer....but it hasn't come to me yet....

In the past, to make sure a table with little content fills the height of all screens, I have used HEIGHT="100%" in the <table> tag. But now that I'm writing XHTML (and actually validating the pages!), I find that height is not a valid table attribute.

I don't recall seeing a way to do it with css, and am currently just putting a lot of
tags at the bottom of the table, which seems remarkably Neanderthal-ish....


Thanks in advance ------
_||_
db
__________________
Don Beckett
Reiki, Johrei, Macrobiotics: POWER TOOLS
http://johreiki.net/
Reply With Quote
  #2 (permalink)  
Old 03-20-2004, 02:18 AM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

I hear you about the
'technique', I used it muchly to get gif's and or other content to spread down long columns, but I wasn't that familiar with CSS then.
I also haven't used tables for a while, but I will check - off the top of my head though, can you assign height to the td's? IE., you have three rows, say, then each would be 33%, or 2x25% plus 50%?
Also, can you use a containing div that surrounds the table with a height value on that?

It may take some fancy border and background colouring. Is there a way I could see your pages?
Reply With Quote
  #3 (permalink)  
Old 03-20-2004, 04:20 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default

Quote:
Originally Posted by mikmik
I hear you about the
'technique', I used it muchly to get gif's and or other content to spread down long columns, but I wasn't that familiar with CSS then.
I also haven't used tables for a while, but I will check - off the top of my head though, can you assign height to the td's? IE., you have three rows, say, then each would be 33%, or 2x25% plus 50%?
#### I don't believe that's valid either -- and, if it is, it would only make the <td> heights add up to 100% of the <table>, not 100% of the screen.

Quote:
Originally Posted by mikmik
Also, can you use a containing div that surrounds the table with a height value on that?
#### I just now tried that and it didn't work, either with height="100%" or with height="900px". Either way, the table still ends at the bottom of the content.

Quote:
Originally Posted by mikmik
It may take some fancy border and background colouring. Is there a way I could see your pages?
#### Sure - thanks. Here's one: http://www.epiphanypresents.com/contact.html


Blessings to you ------
_||_
db
__________________
Don Beckett
Reiki, Johrei, Macrobiotics: POWER TOOLS
http://johreiki.net/
Reply With Quote
  #4 (permalink)  
Old 03-20-2004, 08:56 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

http://www.blooberry.com/indexdot/ht...ges/t/thtd.htm

According to the page above (I use it as an example so you can also see what I did to look this up under)
"height" is a valid attribute for <td>.

I first tried to make the first table-cell (nav, bg pic) have height=100% but that didn't work, stayed the same.

So I added a second row like this:
Quote:
</TBODY></TABLE>
</TD>
</TR>
<tr><td style="BACKGROUND: url(IMG/missionbg.jpg) #dda0dd" height="400"></td></tr>
</TBODY></TABLE></BODY></HTML>
Then I made the other td's have a rowspan=2 thus:
Quote:
<TD vAlign=top rowspan="2" >
I am not used to working with tables like this, but it is the type of place where you learn to be creative after a while :o)
Reply With Quote
  #5 (permalink)  
Old 03-20-2004, 09:51 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default

WOW -- you lost me with </tbody></table></td></tr>!!
This is the first I've ever heard of a <tbody> tag! -- and thanks for the reference site; I've bookmarked that one now....

My mistake, thinking "height" was not valid in a <td>. Now, knowing it is, I simply put a height of 900px on the first [navigation / bg] <td> and it worked....and validated.


Many thanks again ------
_||_
db

Quote:
Originally Posted by mikmik
http://www.blooberry.com/indexdot/ht...ges/t/thtd.htm

According to the page above (I use it as an example so you can also see what I did to look this up under)
"height" is a valid attribute for <td>.

I first tried to make the first table-cell (nav, bg pic) have height=100% but that didn't work, stayed the same.

So I added a second row like this:
Quote:
</TBODY></TABLE>
</TD>
</TR>
<tr><td style="BACKGROUND: url(IMG/missionbg.jpg) #dda0dd" height="400"></td></tr>
</TBODY></TABLE></BODY></HTML>
Then I made the other td's have a rowspan=2 thus:
Quote:
<TD vAlign=top rowspan="2" >
I am not used to working with tables like this, but it is the type of place where you learn to be creative after a while :o)
__________________
Don Beckett
Reiki, Johrei, Macrobiotics: POWER TOOLS
http://johreiki.net/
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:15 AM.



Search Engine Optimization by vBSEO 3.3.0