2013-11-26 41 views
0

我想讓我的左側邊欄留在我的帖子身體左側,沒有任何空間。我想使它像這個網站鏈接:http://digital-photography-school.com/10-signs-might-photo-geek我怎樣才能讓我的左邊社交邊欄與帖子主體相鄰?

我試了很久,但沒有得到任何答覆。它在我的屏幕和許多屏幕上工作的很好,但在大屏幕上出現問題(屏幕尺寸爲24「),所以如果任何人都可以請幫助我,這對我來說很棒。

我使用這個插件WordPress的:https://www.po.st/get-it這裏是我的網站鏈接,您可以檢查問題:。http://site4preview.site90.net/wordpress/title-for-post-1-will-go-here-2/感謝

我已經給我都用作爲額外的用插件的代碼:

.pw-float-left{ 
    background:#ffffff; 
    padding:10px; 
    top:195px !important; 
    left:0 !important; 
    z-index:99; 
    margin-top:0 !important; 
}  

@media only screen and (min-width:1300px){ // Making problem in larger screens than this */ 
.pw-float-left{ 
    left:7% !important; 
    } 
} 
+0

請張貼你到目前爲止所嘗試過的代碼。 – SaturnsEye

+0

我試圖設置左側位置,但是當我增加了左側像素,然後在小屏幕上獲得了帖子主體。此外,我使用插件,所以沒有更多的代碼我使用過。 –

+0

在http://jsfiddle.net/上發佈你的代碼,然後人們可以看看你的嘗試。 – SaturnsEye

回答

1

像user574632說:

將其放到頁面的容器內,並給它一個負左值

如果你只能改變CSS,補充一點:

.pw-float-left{ 
    background: none; 
    margin-left: 50%; 
    padding: none; 
    top:195px !important; 
    z-index:99; 
    margin-top:0 !important; 
} 

.pw-widget { 
    width: 60px; 
    margin-left: -600px; //change this to move left/right 
    background-color: #FFF; 
    padding: 12px; 
} 

刪除最小寬度1300px媒體查詢

+0

我也想過這樣的事情。無論如何它工作正常。謝謝。 –

相關問題