HighDots Forums  

CSS height properties

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS height properties in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
UteFanJason
 
Posts: n/a

Default CSS height properties - 03-27-2009 , 12:06 PM






Ok. This is a bit embarrassing to have to ask. But, I have been toying around
with javascript and I need to find the height of the document. I can get the
height of the window the page shows up in but I can't seem to get the height of
the entire page.

How can that be found?

Thanks in advance.


Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS height properties - 03-27-2009 , 03:29 PM






..oO(UteFanJason)

Quote:
Ok. This is a bit embarrassing to have to ask. But, I have been toying around
with javascript and I need to find the height of the document. I can get the
height of the window the page shows up in but I can't seem to get the height of
the entire page.

How can that be found?
Try the 'offsetHeight' property of the body element.

http://www.java2s.com/Code/JavaScriptReference/Javascript-Properties/offsetHeight.htm

Micha


Reply With Quote
  #3  
Old   
UteFanJason
 
Posts: n/a

Default Re: CSS height properties - 03-29-2009 , 01:21 AM



Micha,

Thanks so much. That took care of it. I didn't even know about that option. It
isn't listed at w3schools (where I have started all of my web development
learning). However that doesn't surprise me. I eventually ran into the same
problem with php and MySql.

Thanks again. You have taken a lot of stress out of a point of learning.


Reply With Quote
  #4  
Old   
kiusau
 
Posts: n/a

Default Re: CSS height properties - 03-29-2009 , 03:19 AM



[Q]http://www.java2s.com/Code/JavaScriptReference/Javascript-Properties/offsetHeight.htm[/Q]

Hi, Micha.

Thanks for the great link!

Roddy :smile;

Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS height properties - 03-29-2009 , 02:33 PM



..oO(UteFanJason)

Quote:
Thanks so much. That took care of it. I didn't even know about that option. It
isn't listed at w3schools (where I have started all of my web development
learning).
You might find it helpful to use tools like DOM Inspector or Firebug in
the Firefox browser or Dragonfly in Opera (built-in). With them you can
deeply investigate the internal object structure (DOM) of a page,
including all properties and attributes of every single object (can be a
bit overwhelming when you see it the first time ;-) ) and informations
about the box model (e.g. dimensions of the selected object).

Then you can search the Web for further informations about the
properties of interest.

Quote:
Thanks again. You have taken a lot of stress out of a point of learning.
You're welcome.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.