Javascript Q & Eh...
Javascript Q & Eh...
Out of context: Reply #5
- Started
- Last post
- 11 Responses
- ernexbcn0
Here you go:
I'm offsetting the red box 30 pixels from bottom and 30 pixels from the right of the window in the example.
- Hope this helps.ernexbcn
- It should work okay with % rather than a px amount for the initial div?ideaist
- you can measure the element with jQuery, you can get the actual pixels it measuresernexbcn
- even if it's being declared as %, you can get the actual pixels it measures as rendered by browserernexbcn
- Excellent...ideaist
- Give me 5-10 to implement and commence kissing of ass homey...ideaist
- While you're at it... Any neater, more scalable way of doing what I did in this:
http://jsfiddle.net/…orrinward2 - Wicked; the power of javascript/jquery still baffles me...ideaist