2011-07-07 68 views
1

我的URL:http://www.dreambelle.com/ enter image description here 背景图像(白色主,灰色侧杆),该文本和侧栏在滑块下方的后面被放置太低。你可以看到这个问题的侧栏内容后面的滑块的权利......如何改变背景图像上浆

的问题是,我无法弄清楚如何通过CSS移动的背景图像,而不会移动整个身体内容?因为你的div#content,其具有background-image放置您div#featured_body,这是将其向下推下面

+0

什么是你的CSS看起来像背景图片? – brenjt

回答

1

你需要做两件事(做了更小的高度#featured_body),并调整对#sidebar保证金

伊夫测试了以下这个工作对我来说在FF5:

// Remove 10px from the #featured_body height 
#featured_body { 
    background: url("images/bgr_board.png") repeat scroll 0 0 transparent; 
    float: left; 
    height: 356px; 
    margin: 0 12px; 
    padding: 0; 
    width: 618px; 
} 

// Add 10px to the sidebar top margin 
#sidebar { 
    float: left; 
    height: auto; 
    margin: -375px 0 20px; 
    padding: 0; 
    width: 332px; 
} 
0

这是发生 enter image description here 背景图像从一个小棒(附后)呈现。

你有两个选择,因为我看到它:

  1. 使div#featured_body较小的高度方向上,使背景图片排队与twitter div

  2. 地方花药wrapper div周围的一切在nav下的内容并将background-image添加到该内容。 (也就是说,如果你想让bg-img伸展到页面的顶部)。