Element.clientWidth/offsetWidth in IE and Mozilla
Posted by: Rick Strahls WebLog,
on 05 Feb 2006 |
View original | Bookmarked: 0 time(s)
So I'm working on some Javascript that needs to draw a shadow panel underneath another panel. What I need to accomplish is to basically copy the dimension of the first panel and then shift it off a little bit. This is pretty easy to do in IE with the following:
if (Context.ShadowOffset != 0)
{
var Panel2 = document.getElementById(Context.ControlId + '_Shadow');
Panel2.style.position = 'absolute';
Panel2.style.top =...