开发者

Help with float right div

开发者 https://www.devze.com 2023-03-29 06:19 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消