You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

Moderators

1code -  [Code] Tạo chuyên mục con auto chia 2 cột Empty [Code] Tạo chuyên mục con auto chia 2 cột Mon Jan 20, 2014 9:12 pm

Moderators
Moderators Quản Lý Viên

Tổng số bài gửi : 96

VNĐ : 257

Uy tín : 9

Gia Nhập : 2013-07-27

Bước 1:
-ACP-> Display-> Homepage-> Structure and hierarchy-> Split categories on index
chọn Medium

-ACP-> Display-> Homepage-> Structure and hierarchy-> Hierarchy
tùy chỉnh như hình sau:
code -  [Code] Tạo chuyên mục con auto chia 2 cột Chaa_c14
Bước 2 vào index_box
Tìm:
Code:
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}
thay bằng:
Code:
<div id="smallrum">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</div>
Bước 3: Thêm vào css:
-Có background: (code dưới có background màu xanh da trời với mã màu là #ccf0ff các bạn có thể thay màu tùy ý)
Code:
#smallrum{padding: 0.4em 1em;margin: 3px 1px;
background: #ccf0ff none;
    -moz-box-shadow: -2px 2px 2px #c8c8c8;
    -webkit-box-shadow: -2px 2px 2px #c8c8c8;box-shadow: -2px 2px 2px #c8c8c8;color: #ccf0ff;width: 375px;}
#smallrum a img{vertical-align: middle; padding-right: 2px;}
#smallrum a.gensmall {
display: inline-block;
text-align: left;
width: 160px;
}
-Không có background:
code -  [Code] Tạo chuyên mục con auto chia 2 cột Chaa_c16
Code:
#smallrum{padding: 0.8em 1em; margin: 3px 1px; 
color: #FFFFFF; width: 375px;}
#smallrum a img{vertical-align: middle; padding-right: 2px;}
#smallrum a.gensmall {
display: inline-block;
text-align: left;
width: 160px;
}

View previous topic View next topic Back to top Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum