Thứ Bảy, 9 tháng 11, 2013

Dùng Blockquote làm chú thích và khung code cho bài viết

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ệnhblockquote{ 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 Thủ thuật được phát triển bởi 24wworks

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/AVvXsEikOLdCfR3diKqGXqBasYKZJtQ2ZiGSH8jv89QBuj206GQAPRu0FQliJ5up2iu9aclcywaS5ysr98r4N4ccLMGvhfEqtiDSKvJbQnw8-8rrs6QfsNimC3YOVZEhyg_vXxGZO_WUpyT_Zgs/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/AVvXsEhEGTvuCfQm9CRaUwwSJE0wyWadLtXo8Rro5XcgGExV-9GZPKLovx0l0tZRF6It-cjyiPOC0HHUkkvf_TXewM6WNvLui72FIJtSEeuJ0NFmPnzVB1SuqUwLC0cjYCx5EgNNv4fH0Ysj6VI/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/AVvXsEhv8woyP8Xlo4c_EVX01fo6AVrDj3FgSlw_DfpJUgZAjMJZfG94EuCZgP_LewVOiLAXS-4zLTSiIFQhxw0YivfTGxLR06hX1spKF7nN3Pomw6w6pqmOUIACqAOfYq43NBDu5ANrgeGpcV4/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/AVvXsEjkm6UBQINEnQ05cV0zcPkJ-6LZWrn8Npmo5pQr-HURWmdwMgQZYQUJ8kSZ3BJWqZf7EKzUhcywI-LQpNs_jSCk-cZ-YpXcM6HCMNlr9HTQvCizhUOrLbgPRV87oYgnh8gCtu7A_9AVKfk/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/AVvXsEgTVrva8tvPJQzYnqrZWe8d81EgPPOeOinAQ-7WB7foolhXAS9mRqlgMzmcmdm3voFypdaPhZwSvZ0K9vQQil3l8Z8L2xVeCG2Ym2799fX5A9BWMOt_kLYgK4XE9xBO57M2BlL8ZkngX7s/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/AVvXsEgxciy4pHfYUqv0IoZyy9JgMURLLRUCVZ34MUURpEUTafHPhlSvkEWbE1qYhBOe59PefLq0-R9xb4hKhqD_0xoyG78qRiKQuR7fWJiL0ouQdoqc0gPba2zpq1xDqV1D2Fzq0p-HjL8oW1Q/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/AVvXsEgnWaDPaBMqbme8twm9KgEDGVxxuZczxZYYDC8exs8AXH0ssy4d05rSx4X_fEYNH2d6jZ1C0zkE2y8syuzAoQghYUlpWKShL6vRpfcjjJN99kld3xXM4cyycUCEcFAJ24Vhyphenhyphen-fWJjsIcVQ/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/AVvXsEgV4c4x3Uz3Sg-wPn2fWIZL5yXuytoHJ9Vf5KQZRZETPUvNw3bidnO0B6m_Czlup96KFB4wDCTiErV8hOIa8cH_JbDDNb6epkW6ZufS9KN6OAd5zpR_Ck0y_GZX5qXa8XQiEqNFMfE6BYs/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/AVvXsEipfPCufldCewMW-INLGw_8waa1Y-z-hxv5Yv1TTgGYxUT_cCdMRO67-HJAwJmYDTkq_GP4XsmYn5o1WWOtunInskGCly3QHbyTMvmXELg5NWWWyh7FwswQ7tGoUzARg83VJvU52Wq6TM8/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/AVvXsEhN_1qV-yMXuOU-flTU-Zzkb_a37aFi6Fe9mEfNnKlfC-RHSuDss7e3OGtCIjvPra_eqreQJdsOdw5Xk3uR7O7xaOnIrGBWCsP8BdBvrnhm3Uok4O98YwFQmTP83KO2j159psUCLFZHbDo/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/AVvXsEhdT_8TSiUFBKAPszb-vCY07X7k85egnRXs7h4jWjWTGaHcTS-f7bE3HHdXalK0rkAPGzHz64EQL-g_SCqzY0VaXrSs5QSwHytU3Bl6xM2FNAyjXfmUTHf-QiyaVvaL-LcTbq3nWX6WtcM/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/AVvXsEiQF5S8ev4mA1z6GTnQz4Ct1atKZOtLmKgMb5sgLKqLk1hSN_YF4Ddc1FSJjQlaNa-EE_Ln5amiPGiJBfRxZo3H3KXCBFh6BqvsjRg25xnPi7rE1E7bKqlbfjEbo2AZy3iXq5XCmUbhpbk/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/AVvXsEidu3TFUPZlk_2Q2gh3P6ZY00CEX0feB6nA0mVNsIPodFpgi0DIzzuWJ7W37JHE8E2bsctq46D7zIW_gch0b_KR1MVoXZzxsa5rdcLuYpqGndWlFW8HDw2SCg2YBznQBKq_W_QCBped1VY/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/AVvXsEjcZrV24_2CzhW57emK8GMs-_nzFORLHaHf-NC0Bts1UIlU4uXfiiaRBMZ8QYFrfmXMCsKeLYq1I3aUnspX8eQI0-o1puoK7Z1Ch-E2WS3QhKikjKqwYKWHwnHg8E4B4lx8aHRJaAeqgKY/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/AVvXsEiwBo5PD4A0fwZVTJE0gfVYoHQOU7aYJPweXPR2bhxiDA_dJvHkoXubzRKciRzd1nnHn9LKzWjiwLiesdIZ5l-y11W6qiXHH4OuMymdyrIqlonwLXQsDMubrld3YNHkDNbsdI8wNQ9qqDA/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/AVvXsEi6ArYBp6vAQqVZzpDnyMYSfMoJwlKM3tadhSEKuT_PKx6Mw53-s7W-e76nLguqgLmHOuNRbbSjLNAT31GMzOqiNlzT5iH4fvSWzLzVe3541gO3VUKXxgN1c3DQ6L7p_Om_Oy_9-b_A5d0/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/AVvXsEhrV0KZSkQwzkh227odTTkPMFBqpjODaswvIkPleJF6h5WIZe8FTNeRWf4QYqOdlA7I5ZNGPs1hUACYOyvlUzHKGG9QUjl8toLBVPzOPu3IonUQ01P6ylYXUhR3jkGzlsfEuQUg1cWjZuA/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/AVvXsEiM4pGuJW104t3eqlWi3fdDFzBHRRv941Rv5CGVGPfgZMcdYfSJ0b3VkJSfdSAdpaeEkLl_KWwcGtMv3QqRocoH0niVgLEo2LV7caoTcrkVP_r9D7BcgbpCSCbo7-rNfynPSo-c8xKdD7g/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/AVvXsEjsAwgqiuIN1r1ai5UySdAVfx0zwvHojojk9hREiInZnlpd8EFhyphenhyphenAymcwymsvUzBCXQjBi_PjEvHL2V4bKrC2gsOA4be1hKPT3FCF8FkX3z5gAsrRejb-SB1LO2Ri-NKxvtx69JKPU42jU/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/AVvXsEgdqjxbKzpPZ0uM7iVbProBOgXSdSdX3Xv6ORKMX1K278C0gk5cIKjHB8ReuB-OEAYBfmHU_XoDYvQrZ0P05D8x8-npuJqkqzvkmx7v26Jvj2v0l1xKsnlmUuwzBkqaujuPqnQ_ly3QwJc/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/AVvXsEh1iOXuxgLOA40oD1YUjq-DlWac08YWFB5fD1v3r1XCZtHbNoMHPSjopdCS1syb_vwYZj_Rk3UROiBb-1DhPqzECItFwfVwn8Hajf0uznpgkIuAvlvvBpD_UNHTQkX1f-dRX8Dgbp-rO7U/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/AVvXsEhStGsvkD3PYWWJM_7wvBwqEuFX2IkQhi7Um8SnVuMGkuibTKax_o5QVOxTDUAe0Repi7jEO465A7p6KFvLBx-sPsIrOOIx2cFYFtUG0FwmXRNcSjfT4F5cYqHtqspSHODLvkYJbSSkytU/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/AVvXsEjfJ6HMkEyylIL3J0OX_tQ1u8QkogZXnXAzbtkIButgvmzttCuc7DAPZBryrONpveGvWL6uKe6zOXl2oalkvBnKeWl_LCYF06mNhytDE6qhCUScwG8EySeJ9EISBMXMzRXjDyfw4dSZMKM/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!

Không có nhận xét nào:

Đăng nhận xét