Ashura: Höhe&Breite eines divs bekommen?

Beitrag lesen

Hallo Florian.

gibt es eine Möglichkeit, die Höhe und Breite eines <div>s mit Javascript zu bekommen?

Ja; siehe http://de.selfhtml.org/javascript/objekte/all.htm#offset_height@title=offsetHeight und http://de.selfhtml.org/javascript/objekte/all.htm#offset_width@title=offsetWidth.

Einen schönen Freitag noch.

Gruß, Ashura

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]