https://www.w3schools.com/howto/howto_css_skill_bar.aspHow TO - More - CSS Skill Bar
CSS를 사용하여 스킬 바(skill bar) 제작 방법을 학습합니다.
Step 1) Add HTML
<h1>My Skills</h1> <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 javascript">65%</div> </div> <p>Java</p> <div class="container"> <div class="skills java">35%</div> </div>
Step 2) Add CSS
/* Make sure that padding behaves as expected */ * 23;box-sizing: border-box;25; /* container for skill bars */ .container 23; width: 100%; /* Full width */ background-color: #ddd; /* Grey background */ 25; .skills 23; text-align: right; /* Right-align text */ padding-top: 10px; /* Add top padding */ padding-bottom: 10px; /* Add bottom padding */ color: white; /* White text color */ 25; .html 23;width: 90%; background-color: #4CAF50;25; /* Green */ .css 23;width: 80%; background-color: #2196F3;25; /* Blue */ .javascript 23;width: 65%; background-color: #f44336;25;/* Red */ .java 23;width: 60%;background-color: #808080;25; /* Dark Grey */