2013-11-26 39 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

我也想过这样的事情。无论如何它工作正常。谢谢。 –

相关问题