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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do DIV Objects Clip? How To Get ACTUAL / Required Size

Status
Not open for further replies.

JTeagle

Programmer
May 30, 2000
49
GB
If the HTML code between DIV and /DIV tags whose position and size are governed by a style sheet is too big for that DIV object, the contents do not get clipped. Is it possible to (i) enforce clipping, and (ii) calculate the ACTUAL size of that DIV object including all the contents? Or, can we somehow calculate how big the contents are going to be and adjust the DIV size accordingly?<br><br>By the way, if anybody cares, I somehow managed to get the properties of a DIV correctly at work in IE4 by starting afresh - I haven't been able to compare code to find out what was wrong the first time, unless it is an IE5 thing (which is what I have at home).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top