2013-03-20 67 views
1

你可以在這裏看到我的網頁爲什麼我的CSS會重疊我的內容?

http://209.140.27.232/~ashleyo/portfolio.html 

我似乎無法弄清楚什麼是錯我的CSS。看來,這樣我就可以不與底部的人以外,似乎是在容器外部的圖像點擊

回答

3

刪除#contentidz-index -1

現在一個無形的容器重疊我的內容您#contentid

添加z-index0作爲這樣

#content{ 
z-index:0; 
} 
0

希望這可以幫助你:)

其實這裏s neither a need of this "z-index" for CONTENT小號DIV和既不是「高度」集裝箱s DIV as there沒有必要的z-index和高度可以自動增長。

只需刪除這些屬性。

#content{ 
    z-index:0; 
} 
#container{ 
    height: 500px; 
} 

,如果你想你可以用這個CSS屬性

#container{ 
    max-height: 500px; 
} 
限制你div`s最大hieght