24 tháng 6, 2012

Dùng Blockquote làm chú thích và khung code cho blogspot



Khi tạo một bài viết với blockquote , văn bản trích dẫn đó sẽ được thụt vào bên trong và làm cho nó nổi bật. Tuy nhiên,style mặc đinh của blogspot rất đơn điệu, nếu bạn muốn thay đổi nó thì bạn có thể chỉnh sửa nó bằng lệnh blockquote{ lệnh css }. 
Blockquotes là cách để làm nổi bật ý tưởng chính của bạn giữa các nội dung khác.  

Các bạn có thể xem Demo TẠI ĐÂY (Trong TemPlate của mình mình để hình trắng do vậy các bạn không thấy có thẻ ở đầu dòng) các bạn có thể nhìn hình để thấy rõ hơn
☼ Bây giờ ta bắt đầu thủ thuật :
1. Đăng nhập blog
2. Vào bố cục (layout)
3. Vào chỉnh sửa code HTML (edit code HMTL).
Ctrl + F : tìm bỏ các đoạn : 

blockquote {......}
.post blockquote {....}
.post blockquote p {.....}
Tại vì mỗi template có một mẫu blockqoute khác nhau. Nên các bạn tìm đoạn code tương tự mà xóa nhé. Nhưng đừng bỏ cái blockquote trong phần reset css nhé :D 


- Sau khi xóa bỏ xong,bạn thêm đoạn code sau vào ngay chỗ blockquote xóa đó. Hoặc thêm ở  trước thẻ ]]></b:skin> 
- Bạn nên sử dụng firefox để test mã blockqoute nào hợp với template của bạn trước rồi hãy quyết định mang vào template. 
Chúc bạn hài lòng. 

Style 1 
Code:
blockquote { margin: 1em 3em; padding: .5em 1em; border-left: 5px solid #fce27c; background-color: #f6ebc1; } blockquote p { margin: 0; }
Style 2


Code:
blockquote { margin: 1em 3em; color: #999; border-left: 2px solid #999; padding-left: 1em; }  
Style 3



Code:
blockquote { margin: 1em 2em; border-left: 1px dashed #999; padding-left: 1em; } blockquote p:first-letter { float: left; margin: .2em .3em .1em 0; font-family: "Monotype Corsiva", "Apple Chancery", fantasy; font-size: 220%; font-weight: bold; } blockquote p:first-line { font-variant: small-caps; } 
Style 4

Code:
blockquote { background-color: #666; color: #fff; font-weight: bold; padding: 10px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } 
Style 5

Code:
blockquote { background-color: #666; color:#fff; padding: 15px; margin: 1em 40px; -moz-border-radius-topleft: 15px; -webkit-border-top-left-radius: 15px; -moz-border-radius-topright: 15px; -webkit-border-top-right-radius: 8px; -moz-border-radius-bottomleft: 15px; -webkit-border-bottom-left-radius: 15px; } 
Style 6

Code:
blockquote { margin : 0 20px; padding: 60px 30px 40px 20px; background : #F1F8FE url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QRtQxoWque0EXjoROb5PzzpXCWj3X26LBxSDkq2p9OF-yRiDaUhjLRL_7B0jLBcVoILKMbR1vyLa3vHI_FpgyMt-ZUyN7s6Du_dC8UojZNzB5VRCwNHXEtRCXV9BcJGOg8Sfudgzp8g/s400/owl.png) no-repeat 350px 5px; font: normal .9em "comic sans ms", Courier,"Times New Roman", Times, serif; color : #000; border-left: 8px dotted #DAB547; } blockquote p { margin: 0; padding-top:10px; } 
Style 7

Code:
.post blockquote { margin : 0 20px; padding: 70px 20px 20px 40px; background : #E4EAFE url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYgoX8OijvArMbgfXH7xppScyJIrIGuOadsaYyATvl2rLnPs5PmRpohxH6tkJIbDKCgcZQyNGOPVbo-RTMHw2svyNq3ejgmjlh1jGAhTW94fv7WBGQJktZeEul2lxn5EQHznSg6OJYCUI/h120/angular-purple-namkna-blogspot-com.gif) no-repeat top left; font: bold 1em Helvetica, verdana, Georgia, "Times New Roman", Times, serif; color : #000; border-bottom : 5px solid #435388; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 8
Code:
.post blockquote { margin : 0 20px; padding: 10px 20px 25px 20px; background : #9FCFFF url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibbl28n3Qtkh64MB1KjlV4DaojTgnom88dYwCOCmGX5CrmVQCs3isgm8SnAFhBa0LoGb_hRxLQWv0CImn7RFt41CiHkPZ0nmFggdew8H52JjW4XSCWG2gNleVeop2vp016SIUmNCf4mb8/h120/block22-namkna-blogspot-com.gif) no-repeat right bottom; font: bold .9em "comic sans ms", arial, Helvetica,verdana, Georgia; color : #484848; border: 5px dashed #fff; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 9

Code:
.post blockquote { background: #F3F3F1 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglHG-OjsJ4jjLfx9MYviqql7cVJHMqpPhi9-3Cwrnh_Wv9KUjh648xjMypsZFWr-fuU4TcQkIfmPZc4We7IN4Lkb9jJVPtQUve_AvI8xOWTOR-FIxvZ8wr_jYvkN0Hk3m17mVZ81CMCs4/s1600/comma-side-namkna-blogspot-com.gif) ; background-position:; background-repeat:repeat-y; margin: 0 20px; padding: 20px 20px 10px 45px; font-size: 0.9em; font: italic 1.2em Georgia, "Times New Roman", Times, serif; } .post blockquote p { margin: 0; padding-top: 10px; } 
Style 10

Code:
blockquote { background: #484B52 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghE5Hg8K4e6eSLO7RMn_5z9PShPTBsk1HHH0C4xpbvNvdsFKCqoArLbZdWi4Cf2gR0Ul3NAk0-0ReBn8j37CoiOo8z6hIkCOr74I-10AwC9LjLcDi1-C3o0t9269_mVdsIqZ7-IgAdXL4/s1600/green-black-side-namkna-blogspot-com.gif) ; background-position:; background-repeat:repeat-y; margin: 0 20px; padding: 20px 20px 20px 50px; color:#C7CACF; font: normal 0.9em Helvetica, verdana, serif, Georgia, "Times New Roman"; } .post blockquote p { margin: 0; padding-top: 10px; } 
Style 11


 Code:
.post blockquote { margin : 0 20px; padding: 20px 60px 80px 20px; background : #FEE4E3 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqDxpqiTsbhModZe3yDBdH0GFE7gwTDTprJJc_ppdLU9aevLpmc2XdAXdJleJP5VvpKgA-8_bbIFkjEBU20dM7BHInFQwwKpGHovBip8W__CR-JLnfUpaVUiSoMuJ14MobFRmIYjUGelI/s1600/angular-right-namkna-blogspot-com.gif) no-repeat bottom right; font: bold italic 1em Georgia, verdana, Helvetica, "Times New Roman", Times, serif; color : #000; border: 1px solid #DDD; } .post blockquote p { margin: 0; padding-top:10px; }.post blockquote { margin : 0 20px; padding: 20px 60px 80px 20px; background : #FEE4E3 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYKWdPjkpstqJBDFykdxHdsjCoeOxOubsn7ByKnsBCR4LC_Uu760bedxVpBeeYcx9pWGCwe4zjNqjqZI6ceGLjTcod-cQvrdrnQJGAk2DUdhh-5ukhG6xg1zATqRz4zdf9j6o_39y4rFA/h120/angular-right-namkna-blogspot-com-1.gif) no-repeat bottom right; font: bold italic 1em Georgia, verdana, Helvetica, "Times New Roman", Times, serif; color : #000; border: 1px solid #DDD; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 12
Code:
.post blockquote { font: 18px normal Tahoma, sans-serif; padding-top: 10px; margin: 5px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUqsixX-OGWlCA7BovosPc5c2IVD2UrgcC8lagMfbuUaHgj2Gq5LixK2e9IUG7wRl8Km7cSowdU6nj8rC5O46DoksyNviSSu5yYlTHgDL1LUJF3FgG4WLZ2MQoQvCpwdGHcMnG96c5bXg/h120/comma-left-namkna-blogspot-com.gif) no-repeat top left; text-indent: 65px; } .post blockquote div { display: block; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFOut0gp1nEULKnO9_aueZlFbQlK5YBvHV_xGHfvTcHaSzuKzds8t9GbkocSckw0RPWSMI833t5R8iL4RgONg8mTkfFHCDuGa-TW2NBTxuvHpFFplm3V9dCl0DTET-AwrO-FJlDHp74fA/h120/comma-right-namkna-blogspot-com-1.gif) no-repeat bottom right; padding-bottom:10px; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 13

 Code:
.post blockquote { font: 18px normal Tahoma, sans-serif; padding-top: 10px; margin: 5px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg1wD_302l_dpBEN1xdu_K9NUBfV1qcHz4oANv2aZ6z8-Ksco5uEf8YvFAWRhYgiE4bvNKQMX2QVTt_AGBMHR07CPDeEWDjLR4KQJxJ97R7K26qvx_HXSps6jqbh8WTL4jqvVZ7WfICOI/h120/comma1-left-namkna-blogspot-com.gif) no-repeat top left; text-indent: 65px; } .post blockquote div { display: block; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK0fjOaM4W6K2R9aypzDSdge-hPHQFQBX4HhyphenhyphenxODAsZl5ysIL3zm39txA0wdUKB6nmpKNICVVeyeuU6DglaVnU_vF1Qpn9iUdtGcX2Cr00kZa6FcGpIk0YiSpQVNsQdWmbycHvWSqlHNY/h120/comma1-right-namkna-blogspot-com-1.gif) no-repeat bottom right; padding-bottom:10px; } .post blockquote p { margin: 0; padding-top:10px; }
Style 14

 Code :
.post blockquote { font:bold italic .9em "comic sans ms", Tahoma, sans-serif; padding-top: 25px; margin: 5px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTXIzFC4-_HFY6ymXBk4zgZa5kZ2QStB8moeBk3qypTWywSzqQwlJTDRtc6bj46I0wxKWZI_ZxL-K5nmQ-nDZYt9fujV469fZUGhKHNtm-c5I7MuWannY_nrVjMs46Kob-CNwfW_e3ZwE/h120/left-namkna-blogspot-com.gif) no-repeat top left; text-indent: 65px; color:#6299E4; } .post blockquote div { display: block; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjo6yuERwFArCmcPbMgKVftEIZs8tKzUH8Yn1RlFNPgua_kQzBMEMde4Z-a9pmuGcBbsQxUFYIDQUO3Ni3w_l8ZoJl2uU5zqyanLmnBpUPZ19qzBPj8b7YSG1l67i8CuWkdzHMAkTH7R-8/h120/right-namkna-blogspot-com-1.gif) no-repeat bottom right; padding-bottom:30px; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 15


 Code:

.post blockquote { font: italic 1em "comic sans ms", Tahoma, sans-serif; padding-top: 10px; margin: 5px; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5uHi0G39qjIKq6SSPD8I6wk36rrvA2X1HlhGf0z8IqK5o_pRe-HIlSCkxlBBKeBENyjZxMROKLr5zL4c1hFlce5aakie_EAzAd6YxIGg_xCqfO4lGk8_lddutaQuDW7cv1vxuQNHcprw/h120/comma2-left-namkna-blogspot.gif) no-repeat top left; text-indent: 65px; } .post blockquote div { display: block; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRC5ii2T84PP89bfN83thCxpEULfrDeQ2CbcFXCczf_KprdpfWbTRF753DEBs7GTnjb9neWQtXxA4I7tGgth2MA81HOHwGrYd2DipQuRHY9e4cXr3UkoHyC1HnuoV188X1olTP_7hOQlI/h120/comma2-right-namkna-blogspot-com.gif) no-repeat bottom right; padding-bottom:10px; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 16


Code:
.post blockquote { margin : 0 20px; padding: 70px 20px 20px 20px; background : #E7E5DC url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz37r60xufJBDkyoQUzVawh73S6tzNhIR5InlzQA5aISLymdXAdSLtJaDDgoFc8d6pMgEnAPbaEXgDApsxhyzakVjfjQwa3mPR7bpKy55DVMXUxpRb_wbrIyKU00J9m1x0JOIgtWmhNJA/h120/block333-namkna-blogspot-com.gif) no-repeat top; font: normal 1em "comic sans ms",Helvetica, Courier,"Times New Roman", Times, serif; color : #000000; border-bottom : 7px solid #FF0000; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 17



Code:
.post blockquote{ margin : 0 20px; padding: 50px 30px 50px 30px; background : #FFF url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJjFHpgqGs8IGdNXlmT2nWnaxO05BQcALl4lzZ30pkxkrYzjcnfqutNppmvWu_gF0aG71OZZUDI9fHhmoIi9hhTA5FoI1MnLoY68AA6fiXnHlw0uG9QMNg4dh4agkgqibDSPuLiYmenCE/h120/BLOCK1-TOP-namkna-blogspot-com.gif) no-repeat top; font: bold italic 1em Helvetica, verdana; color : #000; } .post blockquote div{ background : #FFF url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEGUd_nR34wSUE607ueRb0eJiSn7HPE_ll4OxHbdvw6SnneMLdSZlqF1h8SimLQ_KPhzb59G9Eq21nwJwoeXWTWJ7-etuLvdOvoUfbDsRFi3Ig1f5GebPXRue14e6cs0eInAvxJlD6mA/h120/BLOCK1-BOTTOM-namkna-blogspot-com.gif) no-repeat bottom; padding-bottom: 50px; } .post blockquote p { margin: 0; padding-top:10px; }
Style 18

Code:
.post blockquote { margin : 0 20px; padding: 70px 20px 30px 20px; background : #E7E5DC url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi902iwoe9_Eq2k79o36lxzrYQKuv3C-nlDtbOhF4rChs5oJsfytbPZi8AtwTR1rfIgy3AP_PRQuE8fDToQOHoqKgawrGZommxuZXO2Ja-gjJ6Gyht-mdFX2bTLc7CkBPYwXcAPaTJuGlc/h120/block3331-namkna-blogspot-com.png) no-repeat top; font: bold .9em Helvetica, "comic sans ms",Courier,"Times New Roman", Times, serif; color : #343434; border-left : 7px solid #FF7802; border-right : 7px solid #FF7802; border-bottom : 7px solid #FF7802; } .post blockquote p { margin: 0; padding-top:10px; } 
Style 19

Code:
.post blockquote{ margin : 0 35px; padding: 80px 0px 0px 0px; background : #E6F1FA url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7IOYw02htDtH_-818X_xdmx5F-1BzM1VS7Skgl0A2PxehCkHmCxXe5pUiYcGJ07lue5oIgDKQI4jEoRZvuaQvQWgxOEKOKQhfSJrePLm9yo0vycgRh2j5HtnPM4kVuMaEMnsYAJ56JCo/h120/head2-namkna-blogspot-com.png) no-repeat top; font: normal 1em "comic sans ms", Helvetica, verdana; color : #666; } .post blockquote div{ background : #E6F1FA url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAK4ZHY4thBVnePAIzV-jh9fXs-yHoRaw776nQnEQ4yoKcF6450ksfn7pjiVArLP3Z0Fflg9a4uvsHrGOXn8RTycDG1zg1YBqmyRBu-_IGSLMvjmEFpZJJUQxL9bA9ybjVuAdK3Un1p00/h120/head-bottom3-namkna-blogspot-com.png) no-repeat bottom; padding-bottom: 50px; } .post blockquote p { margin: 0; padding: 20px; } 
Style 20
Code:
.post blockquote { margin:1em 20px; } .post blockquote p { margin:.75em 0; } blockquote { background:#EFEFF7; }
Style 21
Code:
blockquote { background-position:-10px -7px; border: 1px dashed #FFC600; margin: 20px 10; padding: 0 20px 0 50px; background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7yqWIv_ztOTxs9JfebkOqHaUA4IjDqBPazQV5XQ6qpAWySgzv7fRHsgdpnzw_f5H6-D9mTHZS4Z0iOXwFljtrUkooGu1krtLhtnzozdqCwfSLoCUFiVtVvmHXCzVcQg0WhNaZGr4e6SY/h120/quote-namkna-blogspot-com.png") 5% no-repeat #FFF8DD; }
Style 22

Code:
blockquote{ background-color: transparent; border-top: 3px double#DC143C; border-bottom: 3px double #DC143C; padding: 5px; font-style: oblique; font-size: 1em; margin-left: 5%; margin-right: 5%; }
Style 23

Code:
blockquote{color: black;font-family:Courier New;font-size:9pt;width:90%px;overflow:auto;repeat-y;max-height:200px;margin:5px 10px;padding: 4px 10px 0px 40px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_CbghWZWBsAeviNJ83MigjUYtn4Av4wV9bTJOUZFU0goql3nHnyy4DJp3ePsa_EX-few_EeC_YZUFC58lzZRKv6Q13m5_wg0GhYpPCwOJxiAZV4wuGS0w_LCDmwDYRmT_NBVoiGEPuFw/h120/pre_code_bg-namkna-blogspot-com.png) repeat-y left top;white-space: no-wrap;display: block;}
Các mẫu trên chỉ là tham khảo.Bạn có thể chỉnh sửa hình ảnh và code css lại cho phù hợp với cá tính của bạn.
Chúc thành công!
Chủ đề:

0 nhận xét:

Đăng nhận xét

Support : Guide | Blogspot Tips | Television | IDM | Software Free | Site Map | Back Link | Contact | ↑ back to top
Ghi rõ nguồn kynangblog.blogspot.com khi phát hành lại thông tin từ trang này
Copyright © 2011. KỸ NĂNG BLOG - All Rights Reserved
Design by KyNangBlog Edit Ky nang blog
Xem tốt nhất ở độ phân giải 1024 x 768 pixel
Six million kynangblog template byKyNangBlog
Blogger Gadgets