我似乎无法对齐产品网格,以便项目从左侧而不是右侧显示:
http://penarthpc.com/~dronebo2/wp/shop/tshirts/
我所做的每件事都会弄乱模板文件,我在这里遗漏了什么?
答案 0 :(得分:1)
将float:right
添加到#shop-menu-left
#container #content #shop-content #shop-menu-left {
float: right;
width: 240px;
}
答案 1 :(得分:1)
#container #content #shop-content #shop-right #product{float:left;}
答案 2 :(得分:1)
#container{
float:right;
margin-left:...px;
}
答案 3 :(得分:0)
在您的HTML中
<div id="shop-content">
<div id="shop-menus">
</div>
<div id="shop-items">
</div>
</div>
并在你的CSS中:
#shop-content {
float:both;
}
#shop-menus {
float:right;
}
# shop-items{
float:left;
}
答案 4 :(得分:-1)
只需使用
float: ((left or right or where you want));
CSS文件中的