Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get the width of a dynamically generated layer?

Status
Not open for further replies.

moham

Programmer
Nov 12, 2001
13
0
0
US
I am trying to get the horizontal space occupied by a layer whose innerHTML is set dynamically. I do not set the width since the text varies.

thanks
 
object.style.width

or

object.offsetwidth

[bb]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top