Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Set table height to minum of the size of the "window" without javascript?

Reply
Thread Tools

Set table height to minum of the size of the "window" without javascript?

 
 
J.O. Aho
Guest
Posts: n/a
 
      01-10-2007
I wonder if it's possible to set the height of a table to be at least the same
as the displayed area in the browser without using javascript (including that
jscript from microsoft), so that it works in gecko based browser, opera, khtml
based browser and msie?


--

//Aho
 
Reply With Quote
 
 
 
 
Ivan Pesa
Guest
Posts: n/a
 
      01-10-2007

"J.O. Aho" wrote in message
>I wonder if it's possible to set the height of a table to be at least the
>same as the displayed area in the browser without using javascript
>(including that jscript from microsoft), so that it works in gecko based
>browser, opera, khtml based browser and msie?
>
>
> --
>
> //Aho


U can use this simple order --> <table height="100%">


 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      01-10-2007
J.O. Aho wrote:
> I wonder if it's possible to set the height of a table to be at least
> the same as the displayed area in the browser without using javascript
> (including that jscript from microsoft), so that it works in gecko based
> browser, opera, khtml based browser and msie?
>
>

Most likely you are trying to use a table improperly for layout instead
of just to display tabular data.

Check out:
http://www.google.com/search?hl=en&q...=Google+Search

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-10-2007
Jonathan N. Little wrote:

> Check out:
> http://www.google.com/search?hl=en&q...=Google+Search


or maybe even:
http://www.google.com/search?hl=en&l...ss+html+layout

<g>
--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      01-11-2007
Beauregard T. Shagnasty wrote:
> Jonathan N. Little wrote:
>
>> Check out:
>> http://www.google.com/search?hl=en&q...=Google+Search

>
> or maybe even:
> http://www.google.com/search?hl=en&l...ss+html+layout
>
> <g>


Thanks for correcting my *really* bad spelling!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-11-2007
Jonathan N. Little wrote:

> Beauregard T. Shagnasty wrote:
>> Jonathan N. Little wrote:
>>
>>> Check out:
>>> http://www.google.com/search?hl=en&q...=Google+Search

>>
>> or maybe even:
>> http://www.google.com/search?hl=en&l...ss+html+layout
>>
>> <g>

>
> Thanks for correcting my *really* bad spelling!


Welcome. <g>

I have written some tabless pages in the past, though...

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
J.O. Aho
Guest
Posts: n/a
 
      01-11-2007
Ivan Pesa wrote:
> "J.O. Aho" wrote in message
>> I wonder if it's possible to set the height of a table to be at least the
>> same as the displayed area in the browser without using javascript
>> (including that jscript from microsoft), so that it works in gecko based
>> browser, opera, khtml based browser and msie?


> U can use this simple order --> <table height="100%">


None of Konqueror, SeaMonkey, Opera or MSIE seems to do this, even tried that
in CSS.


--

//Aho
 
Reply With Quote
 
J.O. Aho
Guest
Posts: n/a
 
      01-11-2007
Jonathan N. Little wrote:
> J.O. Aho wrote:
>> I wonder if it's possible to set the height of a table to be at least
>> the same as the displayed area in the browser without using javascript
>> (including that jscript from microsoft), so that it works in gecko
>> based browser, opera, khtml based browser and msie?
>>
>>

> Most likely you are trying to use a table improperly for layout instead
> of just to display tabular data.


With the simple table, I get things to keep the right order, while using div
to place things out seems to generate quite different looks in different
browsers. While using a table does generate a similar look on them all, even
links keeps the design.

+-------+
| |
+--+----+
| | |
| | |
| | |
+--+----+
| |
+-------+

This is what I try to get, which I get with a simple table.

I would wish to get that last "cell" to be placed at the bottom of the display
area if the whole page don't take up more space.

Pages "suggested" by Beauregard don't have help me much at all.

--

//Aho
 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      01-13-2007
To further the education of mankind, "J.O. Aho" <>
vouchsafed:

> Ivan Pesa wrote:
>> "J.O. Aho" wrote in message
>>> I wonder if it's possible to set the height of a table to be at
>>> least the same as the displayed area in the browser without using
>>> javascript (including that jscript from microsoft), so that it works
>>> in gecko based browser, opera, khtml based browser and msie?

>
>> U can use this simple order --> <table height="100%">

>
> None of Konqueror, SeaMonkey, Opera or MSIE seems to do this, even
> tried that in CSS.


You need to include a css style something like:

html,body {
height:100%;
}

to get a reference.

--
Neredbojias
Infinity has its limits.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get specific cell height without hard-coding a height value laredotornado@zipmail.com HTML 0 08-19-2006 08:13 PM
Div inside an iframe - how to set height relative to the iframe's visible size? Joe Attardi Javascript 0 01-17-2006 08:01 PM
How to tell height of div where height is not set? Don Vaillancourt Javascript 8 01-31-2005 11:32 AM
Font size depend on table height Martin Johansen HTML 7 09-22-2004 03:01 PM
Detecting screen.height for use in <Table Height=> john T Javascript 7 02-19-2004 05:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57