
Trường hợp thứ nhất là chia Header thành 2 phần. Trước tiên bạn cần xác định id cho cả
Header là header-wrapper, id cho phần bên trái (thường chứa Tiêu đề Blog) là header và id cho phần bên phải là header-right.
Đăng nhập Blogger, vào Design >> Edit HTML. Tìm đoạn code CSS tương tự như sau.
#header-wrapper {
margin: 0 auto;
width: 800px;
...
}
#header {
...
}
margin: 0 auto;
width: 800px;
...
}
#header {
...
}
Rồi thay nó bằng đoạn code bên dưới.
#header-wrapper {margin: 0 auto;width: 800px;}
#header {float: left;width: 200px;text-align: center;color:$pagetitlecolor;}
#header-right {float: right;width: 600px;padding:0;}
#header {float: left;width: 200px;text-align: center;color:$pagetitlecolor;}
#header-right {float: right;width: 600px;padding:0;}
Tiếp tục tìm đoạn code tương tự bên dưới.
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
</div>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
</div>
Và thay nó bằng đoạn code sau đây.
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
<b:section class='header' id='header-right' showaddelement='yes'>
</b:section>
</div>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
<b:section class='header' id='header-right' showaddelement='yes'>
</b:section>
</div>
Lưu Template rồi vào Page Elements bạn sẽ thấy kết quả tương tự thế này.
Thay đoạn code CSS ở trường hợp thứ nhất bằng đoạn code sau.
#header-wrapper {margin: 0 auto;width: 800px;}
#header {
float:left;
width:30%;
height:200px;
margin: 0px;
border: 0px solid $bordercolor;
text-align: center;
color:$pagetitlecolor;
}
#header-middle {float:left; width:30%; height:200px}
#header-right {float:left; width:39%; height:200px}
#header {
float:left;
width:30%;
height:200px;
margin: 0px;
border: 0px solid $bordercolor;
text-align: center;
color:$pagetitlecolor;
}
#header-middle {float:left; width:30%; height:200px}
#header-right {float:left; width:39%; height:200px}
Tiếp tục tìm đoạn code tương tự bên dưới.
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
</div>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
</div>
Rồi thay nó bằng đoạn code sau đây.
<div id='header-wrapper'>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
<b:section class='header' id='header-middle' showaddelement='yes'/>
<b:section class='header' id='header-right' showaddelement='yes'/>
<div style='clear:both;'/>
</div>
<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='Tên Tiêu đề Blog (Header)' type='Header'/>
</b:section>
<b:section class='header' id='header-middle' showaddelement='yes'/>
<b:section class='header' id='header-right' showaddelement='yes'/>
<div style='clear:both;'/>
</div>
Lưu Template rồi vào Page Elements bạn sẽ thấy kết quả tương tự thế này.
Chúc các bạn thành công !
Nguồn : huunghi-t78.blogspot.com
Copy : CGC Blog
Khi copy, các bạn nhớ ghi rõ nguồn gốc. Xin chân thành cảm ơn!

0 Bình Luận:
Đăng nhận xét
☺ Nội quy comments của CGC Forum :
1. Comments không được sử dụng lời lẽ thiếu văn hóa, ảnh hưởng xấu đến chính trị, tổ chức, cá nhân.
2. Không được sử dụng comments với mục đích spam.
Những comments làm trái quy định sẽ bị xóa...!
Xin cảm ơn các bạn đã đóng góp comments và tuân thủ nội quy của blog !
Notice by Admin