Как сделать - отображения ваших навыков
Узнайте, как создать панель навыков с помощью CSS.
Мои навыки
"умение бар" часто используется в онлайн CV/резюме для отображения ваших навыков в различных областях:
HTML
90%
CSS
80%
JavaScript
65%
PHP
60%
Создание панели навыков
Шаг 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-right: 20px; /* Add some right padding */
line-height:
40px; /* Set the line-height to center the text inside the skill bar, and to expand
the height of the container */
color: white; /* White text
color */
}
.html
{width: 90%; background-color: #4CAF50;} /* Green */
.css
{width: 80%; background-color: #2196F3;} /* Blue */
.js
{width: 65%; background-color: #f44336;} /* Red */
.php
{width: 60%; background-color: #808080;} /* Dark Grey */