I am encountering an issue when trying to position #slider, where the navigation and elements above it also move. It seems as though they are contained within #slider, even though they are not.
HTML:
<div id="slider" class="clearfix">
<div class="content">
<h2> This is a header </h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</div><!-- .content -->
<div class="images">
<img src="images/slider-twitter.png" alt="">
</div><!-- .images -->
</div><!-- #slider -->
CSS:
#slider {
margin: 2px auto;
width: 821px;
}
#slider .images { float: left; }
#slider .content { float: right; width: 365px; }
Resolved Issue: http://jsbin.com/oriwe3