Created
October 19, 2010 17:09
-
-
Save thecodedrift/634585 to your computer and use it in GitHub Desktop.
felocity_1234
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="one"> | |
| <div id="two"> | |
| <div id="three"> | |
| <!-- content here --> | |
| </div> | |
| </div> | |
| </div> | |
| /* one: relative position, lets things be placed absolutely */ | |
| #one { | |
| position: relative; | |
| } | |
| /* two: absolute position. doesn't matter what frame is, it becomes the proper width */ | |
| #two { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| } | |
| /* three: relative position. resets the positioning model for content inside */ | |
| #three { | |
| position: relative; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
instead of looking at document.body.scrollWidth() / offsetWidth() / clientWidth(), can now just get a proper measurement for "#rwo"