- CSS Skill Bar လုပ်နည်း
CSS ဖြင့် ကျွမ်းကျင်ဘားတစ်ခု ဖန်တီးနည်းကို လေ့လာပါ။
ငါ့ကျွမ်းကျင်မှု
မတူညီသောဘာသာရပ်များတွင် သင်၏အရည်အချင်းများကိုပြသရန် "skill bar" ကို အွန်လိုင်း CV များ/ကိုယ်ရေးမှတ်တမ်းများတွင် မကြာခဏအသုံးပြုသည်-
HTML
90%
CSS
80%
JavaScript
65%
PHP
60%
Skill Bar ဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ။
ဥပမာ
<p>HTML</p>
<div class="container">
<div class="skills html">90%</div>
</div>
<p>CSS</p>
<div class="container">
<div class="skills css">80%</div>
</div>
<p>JavaScript</p>
<div class="container">
<div
class="skills js">65%</div>
</div>
<p>PHP</p>
<div
class="container">
<div class="skills php">60%</div>
</div>
အဆင့် 2) CSS ကိုထည့်ပါ
ဥပမာ
/* Make sure that padding behaves as expected */
* {box-sizing:border-box}
/* Container for skill bars */
.container {
width: 100%;
/* Full width */
background-color: #ddd; /* Grey background */
}
.skills {
text-align: right;
/* Right-align text */
padding-top: 10px; /* Add top padding */
padding-bottom:
10px; /* Add bottom padding */
color: white; /* White text
color */
}
.html
{width: 90%; background-color: #04AA6D;} /* Green */
.css
{width: 80%; background-color: #2196F3;} /* Blue */
.js
{width: 65%; background-color: #f44336;} /* Red */
.php
{width: 60%; background-color: #808080;} /* Dark Grey */