CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
i seem to notice that position: fixed is relative to whole body/html. can i position an element fixed relative to an element?
markup is something like
<div class="bbcode_code_body" style="white-space:pre"><div id="wrapper">
<div id="main" />
<div id="sidebar" />
wrapper is centered
i want to position sidebar fixed relative to the wrapper/current position. so scrolling will only affect div#main
nope – fixed is always relative to the browser window :)
If you want to do it inside a box, use absolute – but then it will scroll with teh box… lol
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed