Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick HTML question
#1
So I have a table at the top of my page, which contains the header banner, tagline, etc.
Then I have another table, and a table row for the links. Then I want the next table row, beneath it, to hold all the main body of the page. That means I need it to be the whole height of the page. I tried using the height="100%" propery on the td, no luck. Tried it on the <table>, no luck.
Any help?
Code:
(pseudocode)
<table>
<tr>
<td> holds me banner image </td>
<td> holds some text, aligned to the right of the page, just a tagline sort of thing </td>
</tr>
</table>
<table>
<tr>
<td> holds all my links - not a navbar on the left, but rather a navbar on the top. </td>
<td> the main body of text </td>
</tr>
</table>
(end document)
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#2
Code:
<table border="1" height="100%" width="100%">
<tr><td width="200" height="75">Banner</td><td>Tagline</td></tr>
<tr><td colspan="2" height="30">Links</td></tr>
<tr><td colspan="2" valign="top">Main Page</td></tr>
</table>
Reply
#3
Hm, I always want everything to be in percentages. Always. Everything. Is there a way to do that with percentages?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#4
Er, just change the numbers to percentages.
Reply
#5
Oh, right I see...
Okay, but that doesn't work when using two <table>s. Is it possible to have the second table have height="100%"?
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#6
Why do you need two tables?
Reply
#7
So I don't have to rewrite all of my code. Sad
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#8
Tables are defined to only be the height of their content where possible. So put more content in Wink
Reply
#9
Ouch. That's the only way?
But it's alright...I guess it can't hurt to have one pixel-based propery...600px. Should cover the whole page in even the highest resolution.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#10
Well... if you make the background colour the same as your table background colour, and don't have a bottom border then it doesn't matter Wink

That's what I've done with subOracle, for the information screens.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)