简体   繁体   English

如何使该div左移而不是右移?

[英]How can i make this div go to the left and not the right?

Look at this picture of it... 看这张照片...

http://www.flickr.com/photos/91733140@N06/8329388242/in/photostream http://www.flickr.com/photos/91733140@N06/8329388242/in/photostream

How can i make this div go to the left and not the right? 如何使该div左移而不是右移?

it keeps messing up and i really need it to be fixed any ideas how i can make it work? 它不断混乱,我真的需要修复它,我如何使它起作用的任何想法?

    <style type="text/css">

#body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #E0E0E0;
}

#header {
    background: #FFFFFF;
    height: 33px;
    width: 100%;
    padding: 5px 30px 5px 30px;
    font-family: arial;
    font-size: 30px;
    border-bottom: 1px #737373 solid;
    position: fixed;
    top: 0;
}

#container {
    width: 1205px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

#box {
    width: 228px;
    height: auto;
    background: #FFFFFF;
    border: 1px #5E5E5E solid;
    margin: 5px;
    float: left;
    font-family: arial;
}

#box_title {
    width: 218px;
    height: auto;
    padding: 5px;
    background: #5E5E5E;
    color: white;
    border-bottom: 1px #FFFFFF solid;
    float: left;
    font-family: arial;
}

#box_img {
    width: 210px;
    height: auto;
    float: left;
    margin-left: auto;
    margin-right: auto;
}

#box_options {
    width: 228px;
    height: 40px;
    background: #FFFFFF;
    color: #000000;
    border-top: 1px #5E5E5E solid;
    float: left;
    font-family: arial;

Not to judge you by your open tabs but you seem to want a "Pinterestish" wall. 不要通过打开的选项卡来判断您,但是您似乎想要“ Pinterestish”墙。 This is not easy via vanilla css, may I suggest looking into jquery masonry? 通过香草CSS做到这一点并不容易,我是否建议您研究jquery石工?

http://masonry.desandro.com/ http://masonry.desandro.com/

It does all the heavy lifting for you 它为您完成所有繁重的工作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使左右div一直走到底? - How to make right and left div go all the way to the bottom? CSS - 如何将 div go 的宽度更改为左侧而不是右侧? - CSS - How to make the width change of a div go left instead of right? 如何使一个div go的内容从左到右,然后drop e继续从左到右 - How to make the content of a div go from left to right, then drop e continue going left to right 如何使左div扩展而右div具有恒定宽度? - How can I make the left div expand and the right div have constant width? 我怎样才能使一个div的右边高度与左边不同 - How can i make a div's right height different from the left 如果css中有一个空白,我如何才能使div的宽度到页面的右端 - How can i make the width of a div till the right end of the page, if theres a margin-left in css 如何使左侧的多个div与右侧的一个div重叠? - How can I make several divs on the left overlap one div on the right? 在给左右边距后,如何使 div 填充整个可能的宽度? - How can I make a div fill the whole possible width after giving margins both to left and right? 如何使背景颜色 go 围绕 div 而不是一直向左或向右 - How to make background color go around div and not all the way to the left or right 如何使外部div通过jQuery切换和动画从左单击并在ri单击上转到右? - How to make an outside div come from left on click and on ri-click go to right with jQuery toggle and animation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM