Help with float right div
here is the page www.whiterootmedia.com.
I would like my ads开发者_JS百科 on the right not to wrap and to get pushed off the screen at about 800px. I think I need a wrap div container, float my ads div to the right, min-width my left div to 800px, but I have struggled getting this working. Any help would be greatly appreciated!
Thanks, Dusty
Use this pattern:
<div class="sitewrap">
<div class="contentWrap"></div>
<div class="adWrap">
</div>
use float:left
on contentWrap
and adWrap
. Specify a min-width
on sitewrap
to ensure the content and ads fit without the ads wrapping. This will force scrolling if the viewport is narrower.
精彩评论