Re: CSS styles with 100% height
- From: "Jonathan N. Little" <lws4art@xxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2007 16:29:04 -0400
dorayme wrote:
In article <OknTi.2478$Qj3.1825@trndny01>,
"nospam" <no@xxxxxxxx> wrote:
"Els" <els.aNOSPAM@xxxxxxxxxx> wrote in message news:1xeuh2c28qdtg.1dn375om2tv05$.dlg@xxxxxxxxxxxxxnospam wrote:
But if I use height=100% and width=100px, the height doesnot100% height is 100% of the parent's set height. Apparently the
encompass the entire page - maybe only 200px or so.
How do you define a style with 100% height?
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
.
- Follow-Ups:
- Re: CSS styles with 100% height
- From: dorayme
- Re: CSS styles with 100% height
- References:
- CSS styles with 100% height
- From: nospam
- Re: CSS styles with 100% height
- From: Els
- Re: CSS styles with 100% height
- From: nospam
- Re: CSS styles with 100% height
- From: dorayme
- CSS styles with 100% height
- Prev by Date: Re: retooling and mental housecleaning
- Next by Date: Re: Passing a search string from one frame to another
- Previous by thread: Re: CSS styles with 100% height
- Next by thread: Re: CSS styles with 100% height
- Index(es):
Relevant Pages
|