Professional Documents
Culture Documents
<html>
<body>
<div class="container">
<div class="box">
<h1>Hello, World!</h1>
</div>
</div>
</body>
</html>
.container {
display: flex;
flex-wrap: wrap;
}
.item {
width: 100%;
padding: 20px;
box-sizing: border-box;
}
.button:hover {
background-color: darkblue;
}
body {
font-family: 'CustomFont', sans-serif;
}
Solution:
html, body {
height: 100%;
}
.container {
min-height: 100%;
margin-bottom: -50px; /* height of footer */
}
.footer {
height: 50px;
}
<html>
<body>
<div class="container">
@keyframes slide {
from { transform: translateX(0); }
to { transform: translateX(100%); }
}
.element {
.checkbox {
.checkbox:checked {
background-color: blue;
}
.logo {
.menu {
display: none;
}
.tooltip:before {
.tooltip:hover:before {
opacity: 1;
visibility: visible;
}
::-webkit-scrollbar-thumb {
background-color: gray;
border-radius: 10px;
}
::-webkit-scrollbar-track {
background-color: lightgray;
}
.gallery img {
max-width: 100%;
height: auto;
.button {
background-color: blue;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
transition: transform 0.2s ease-in-out;
}
.button:hover {
transform: scale(1.1);
}
.image {
display: block;
width: 100%;
height: auto;
}
.text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
.container:hover .text {
opacity: 1;
}
.element {
opacity: 0;
animation: fadeIn 1s forwards;
}
.card:hover {
transform: rotateY(180deg);
}
.card .front,
.card .back {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.card .front {
z-index: 2;
background-color: white;
}
.progress-bar {
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: blue;
border-radius: 10px;
.progress-bar-50 {
width: 50%;
}
<html>
<body>
<div class="progress progress-bar-50">
<div class="progress-bar"></div>
</div>
</body>
</html>
.accordion-item {
background-color: white;
border: 1px solid lightgray;
border-radius: 5px;
margin-bottom: 10px;
overflow: hidden;
}
.accordion-header {
padding: 10px;
font-weight: bold;
cursor: pointer;
}
.accordion-header:hover {
background-color: lightgray;
.accordion-content {
padding: 10px;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-in-out;
}
.accordion-item.active .accordion-content {
max-height: 500px;
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: blue;
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
background-color: black;
color: white;
padding: 5px 10px;
border-radius: 5px;
opacity: 0;
.tooltip:hover::after {
opacity: 1;
visibility: visible;
}
.col {
width: 100%;
padding: 10px;
box-sizing: border-box;
}
.navbar ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
.navbar li {
margin-right: 20px;
}
.navbar a:hover {
text-decoration: underline;
}