របៀបបន្ថែម Note Block នៅក្នុង Blogger​ Post (ដោយប្រើ CSS)

Note Block សម្រាប់​ប្រើ​បញ្ជាក់​ទៅ​កាន់​អ្នក​ដោយ​មាន​ជា​ផ្ទៃ​ពណ៌ និង​រូបសញ្ញា​នានា ដើម្បី​បង្ហាញ​ចំណុច​សំខាន់​អ្វី​មួយ​ដល់​អ្នក​អាន ដែល​នេះ​ខុស​ពី​មុខងារ blockquote ដែល​គេ​ទុក​ប្រើ​សម្រាប់​រំលេច​សារ ឬ​ឃ្លា​សំខាន់​ក្នុង​អត្ថបទ ។ តោះ​ដូច្នេះ​យើង​ចាប់​ផ្ដើម​ប្រើ Note Block ដែល​មាន​ពណ៌​ស្អាត ជាជាង​ប្រើ blockquote ។

៙ រចនាបទ Note Block ៖

CSS របស់​ Note Block 1
article .note1{position:relative;padding:20px 30px 20px 50px;background-color:#e1f5fe;color:#01579b;font-size:1rem;line-height:1.62em;border-radius:2px}
article .note1:before{content:'\2605';position:absolute;left:18px;font-size:20px}
@media screen and (max-width: 640px){
article .note1 {width: calc(100% + 40px);left: -20px;font-size: 1rem;border-radius: 0;}}
CSS របស់​ Note Block 2
.note2 {position: relative; padding: 16px 20px 16px 50px;background: #e1f5fe;color: #3c4043;font-size: .95rem;font-family: inherit;line-height: 1.6em;border-radius: 10px;overflow: hidden;}
.note2::before {content: '';width: 60px;height: 60px;background: #81b4dc;display: block;border-radius: 50%;position: absolute;top: -12px;left: -12px;opacity: .1;}
.note2::after {content: '\002A';position: absolute;left: 18px;top: 16px;font-size: 20px;min-width: 15px;text-align: center;}
CSS របស់​ Note Block 3
.note3 {position: relative;padding: 16px 20px 16px 50px;background: #262d3d;color: #ffffff;font-size: 1rem;line-height: 1.6em;border-radius: 5px;overflow: hidden;}
.note3::before {content: '';width: 30px;height: 30px;background: #fefefe;display: block;border-radius: 50%;position: absolute;top: 16px;left: 13px;opacity: .2;}
.note3::after {content: '\1F39C';position: absolute;left: 18px;top: 16px;font-size: 20px;min-width: 15px;text-align: center;}
CSS របស់​ Note Block 4
.note4 {position: relative;padding: 16px 20px 16px 50px;background: #e5e5e5;color:black;font-size: 1rem; font-weight:600; line-height: 1.6em;border-radius: 5px;overflow: hidden;}
.note4::before {content: '';width: 30px;height: 30px;background: #ffd800;display: block;border-radius: 50%;position: absolute;top: 15px;left: 8px;opacity: .8;}
.note4::after {content: '\003F';position: absolute;left: 15px;top: 16px;font-size: 20px;min-width: 15px;text-align: center;}

៙​ ​ដាក់ CSS Note Block ​ចូល template ៖

1- ចូល​គណនី blogger.com របស់​អ្នក។
2- ចូល​ទៅ​កាន់ Theme >> ចុច​សញ្ញា​ព្រួញ​ក្បែរ​ពាក្យ CUSTOMIZE ​ហើយ​យក​ពាក្យ Edit HTML។
3- ស្វែងរក​ស្លាក ]]></b:skin> ហើយ​ចម្លង​កូដ CSS Note Block ខាងលើ​ (1 ឬ​ដាក់​ទាំង 4) យក​ទៅ​ដាក់​ខាង​លើ​ស្លាក​នោះ ។ សូម​មើល​រូប​ខាង​ក្រោម ៖

ចំណាំ ៖ បើសិន​ប្លក់​របស់​លោកអ្នក​មិន​ទាន់​មាន Font Awesome ទេ សូម​ដំឡើង​វា​

៙ របៀប​ដាក់​កូដ​ពុម្ព​ Font Awesome ចូល template Blogger ៖

- ចូល​គណនី blogger.com របស់​លោកអ្នក ។ - ដាក់​កូដ​ពុម្ព​អក្សរ Font Awesome ​ចូល blogger (បើ​ប្លក់​របស់​អ្នក​មាន​ហើយ​មិន​បាច់​ដាក់​ទៀត​ទេ។
- ចូល​ទៅ​កាន់ Theme >> ចុច​សញ្ញា​ព្រួញ​ក្បែរ​ពាក្យ CUSTOMIZE ​ហើយ​យក​ពាក្យ Edit HTML។
- ស្វែងរក​ស្លាក <head> ចម្លង​កូដ​ខាងក្រោម​យក​ទៅ​ដាក់​ពី​ក្រោម​ស្លាក ។
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css' rel='stylesheet'/>


source https://akbalthom.blogspot.com/2022/09/note-block-blogger-post-css.html

Comments