Re: CSS styles with 100% height



dorayme wrote:
In article <OknTi.2478$Qj3.1825@trndny01>,
"nospam" <no@xxxxxxxx> wrote:

"Els" <els.aNOSPAM@xxxxxxxxxx> wrote in message news:1xeuh2c28qdtg.1dn375om2tv05$.dlg@xxxxxxxxxxxxx
nospam wrote:

But if I use height=100% and width=100px, the height doesnot
encompass the entire page - maybe only 200px or so.

How do you define a style with 100% height?
100% height is 100% of the parent's set height. Apparently the
parent's set height is only 200px or so.
You can of course add body{height:100%;}, but be aware that this will
likely have unwanted side effects if your page is taller than the
viewport.


Thanks for the reply.

Sorry but it still isn't clear to me.

Els has replied to this. I can add:

When I put the snippet of mark up originally supplied by you into an html file, the page had a blue margin of 120px going from top to bottom no matter the size of the browser. So, what did you do to test your code, perhaps you can supply a url to it? When I put your snippet into an html file in a straightforward way, I got:

http://netweaver.com.au/test/nospam.html

This gets a blue 120px wide border from top to bottom irrespective of browser window size in Mac Safari, Camino, iCab, Opera, Firefox Not too surprisingly, nothing appears in the old and not much used MacIE. I have not tested in Windows IE

MSIE 7 = "Thumbs Up!"
MSIE 6.01 = "Thumbs Down!" blue 120px wide but only 15px high (1 line?)
MSIE 5.5 = "Thumbs Up!"
MSIE 5.01 = "Thumbs Up!"
MSIE 4.01 = "Wiggles had palm down" blue 120px wide but does not quite make it to the bottom. Always about 25px shy!

Don't ya just love IE!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.



Relevant Pages

  • Re: CSS styles with 100% height
    ... an html file, the page had a blue margin of 120px going from top ... This gets a blue 120px wide border from top to bottom ... irrespective of browser window size in Mac Safari, Camino, iCab, ...
    (alt.html)
  • Re: Non javascript container for slide show
    ... The bottom one should be a strip of some moderately ... HTML img element set to stretch (but what has the aspect ratio mentioned ... (there is no second background image). ... If the browser window ...
    (comp.infosystems.www.authoring.html)
  • Re: CSS styles with 100% height
    ... When I put the snippet of mark up originally supplied by you into ... an html file, the page had a blue margin of 120px going from top ... This gets a blue 120px wide border from top to bottom ... MSIE 5.5 = "Thumbs Up!" ...
    (alt.html)
  • Re: Two thumbs up for the Countryfile Weatherforecast.
    ... all televised weather forecasts on British TV these days is to hold ... your thumbs up to block out the presenter. ... centre of the lenses at the bottom. ...
    (uk.sci.weather)
  • Re: Two thumbs up for the Countryfile Weatherforecast.
    ... all televised weather forecasts on British TV these days is to hold ... your thumbs up to block out the presenter. ... centre of the lenses at the bottom. ...
    (uk.sci.weather)