height as a percentage of the body element in CSS
John Fitzgibbon
jfitzgibbon at Galwaylibrary.ie
Thu Oct 7 07:20:31 EDT 2004
Hi,
In CSS, when the height attribute of an element is expressed as a percentage, the percentage in question is a percentage of the height of the parent element. In many cases, the parent element will be the body element.
Is the height of the body element the height of the viewport (or screen) or is it the height of the document? A document may run to two or three screens. Any testing I have done suggests it is the screen. It is easier for me to manage if it is the screen but I haven't seen this written down anywhere. It is not in 'Cascading Style Sheets: the definitive guide' by Eric A. Meyer. My worry is that there is a third possibility which I have not considered.
Regards
John
*******************************************************************
Tá eolas atá príobháideach agus rúnda sa ríomhphost seo
agus aon iatán a ghabhann leis agus is leis an duine/na daoine
sin amháin a bhfuil siad seolta chucu a bhaineann siad.
Mura seolaí thú, níl tú údaraithe an ríomhphost nó aon iatán
a ghabhann leis a léamh, a chóipáil ná a úsáid.
Má tá an ríomhphost seo faighte agat trí dhearmad,
cuir an seoltóir ar an eolas thrí aischur ríomhphoist
agus scrios ansin é le do thoil.
This e-mail and any attachment contains information which is
private and confidential and is intended for the addressee
only. If you are not an addressee, you are not authorised
to read, copy or use the e-mail or any attachment.
If you have received this e-mail in error, please notify
the sender by return e-mail and then destroy it.
*********************************************************************
More information about the Web4lib
mailing list