Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Get the height of a css class
Nicholas Turner
Ranch Hand
Posts: 126
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i have a css class define in the head as maybe .menuHeader
In my javascript function I need to get the actual pixel height on the browser.
How would one suggest that?
thanks,
Nick
Eric Pascarello
author
Posts: 15385
6
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Check this out
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dynstyle/style_sheets.asp
Chris Baron
Ranch Hand
Posts: 1061
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Nicholas,
this with the same limitations ( not possible in e.g. Netscape 4.7 ) Bear wrote in the jsp-forum yesterday
<html> <body id="bo"> <a href="javascript:alert( document.getElementById( 'bo' ).offsetHeight )">actual height</a> </body> </html>
I don't know what you are trying, but your questions lead to the conclusion that it's a rather uncommon approach
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
resize iframe with height given
Adding horizontal scroll bars to list box
How to make a Frame like this?
How to increase radio button size?
hiding exceeded data in h:dataTable columns
More...