1

I'm confused in some CSS trick. The scenario is painted below. In the 2nd container is a plugin like http://workshop.rs/projects/coin-slider/

I want to move that 2nd container up (the green one), to be connected with the menu bar. The purpose is, I want the Image Logo overlaping the 2nd container. How can I achieve that ? I tried simply set the negative value of the margin-top property of the 2nd container but it causes that the div's are moved.

.

4

3 回答 3

0

这应该这样做:

#container-2 {
  display:block;
  position:relative;
  top:-0px /* <-- Put actual value here */
}
于 2012-10-14T19:21:09.687 回答
0

如果你可以发布你的css代码会更容易。

一些可能性:
将“图像标志”margin-bottom设置为负值并确保容器#1height不会阻止底部容器上升。

或设置两个容器position: absolute,然后设置属性top以匹配所需的结果。

于 2012-10-14T19:22:58.847 回答
0

我会选择一个position: absolute图像标志。

于 2012-10-14T19:24:08.840 回答