See the Pen Mod.1-Ex.1 by Anait (@velvetmade) on CodePen.
Scroll down and start solving the exercises for each module!
See the Pen Mod.1-Ex.1 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
}
.text-content p{
font-size: 16px;
line-height: 21px;
margin-bottom: 25px;
color: #808080;
}
.text-content h3{
font-size: 28px;
letter-spacing: -0.4px;
line-height: 24px;
color: #4361ee;
margin-bottom: 16px;
}
See the Pen Mod.1-Ex.2 by Anait (@velvetmade) on CodePen.
.text-content {
padding: 25px;
}
.text-content p{
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
margin-bottom: 20px;
color: #808080;
}
.text-content a{
color: red;
text-decoration: none;
}
.text-content a:hover{
opacity: 0.7;
}
See the Pen Mod.1-Ex.3 by Anait (@velvetmade) on CodePen.
.button a{
color: #ffffff;
font-family: 'Outfit', sans-serif;
font-weight: 600;
text-decoration: none;
background-color: #0000cc;
padding: 15px 25px;
border-radius: 6px;
display: inline-block;
}
.button{
text-align: center;
margin-top: 60px;
}
See the Pen Mod.1-Ex.4 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
color: #808080;
}
.text-content p{
margin-bottom: 30px;
}
.labels{
margin-bottom: 20px;
}
.labels span{
background-color: #C5EAFA;
color: #42526e;
font-weight: 600;
padding: 4px 10px;
margin-right: 4px;
border-radius: 4px;
font-size: 13px;
}
.text-content a{
background-color: #4361ee;
color: #ffffff;
padding: 10px 15px;
border-radius: 4px;
text-decoration: none;
}
.text-content a:hover{
background-color: #2b35af;
}
See the Pen Mod.1-Ex.5 by Anait (@velvetmade) on CodePen.
.text-content {
padding: 25px;
}
.text-content p{
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
margin-bottom: 20px;
color: #808080;
}
.two-column-text p{
column-count: 2;
column-gap: 25px;
}
See the Pen Mod.1-Ex.6 by Anait (@velvetmade) on CodePen.
.quote{
font-family: 'Outfit', sans-serif;
font-size: 20px;
padding: 30px;
line-height: 1.4;
color: grey;
}
.quote span{
font-weight: 300;
color: red;
font-size: 40px;
font-family: 'Brush Script MT';
}
See the Pen Mod.1-Ex.7 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
color: #808080;
}
.text-content p{
font-size: 16px;
line-height: 21px;
margin-bottom: 25px;
}
.text-content h3{
font-size: 24px;
line-height: 24px;
color: #4361ee;
margin-bottom: 16px;
}
.text-content ul{
padding-left: 1em;
list-style-position: outside;
}
.text-content ul li{
padding-left: 4px;
margin-bottom: 10px;
}
See the Pen Mod.1-Ex.8 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
color: #808080;
}
.text-content p{
font-size: 16px;
line-height: 21px;
margin-bottom: 25px;
}
.text-content h3{
font-size: 24px;
line-height: 24px;
color: #4361ee;
margin-bottom: 16px;
}
.text-content ol{
padding-left: 1em;
list-style-position: outside;
}
.text-content ol li{
padding-left: 4px;
margin-bottom: 10px;
}
See the Pen Mod.2-Ex.1 by Anait (@velvetmade) on CodePen.
.content{
padding: 20px;
text-align: center;
}
.content img{
width: 300px;
height: 180px;
object-fit: cover;
border-radius: 20px;
}
See the Pen Mod.2-Ex.2 by Anait (@velvetmade) on CodePen.
.content{
padding: 20px;
text-align: center;
}
.content img{
width: 300px;
aspect-ratio: 1;
object-fit: cover;
border-radius: 50%;
}
See the Pen Mod.2-Ex.3 by Anait (@velvetmade) on CodePen.
.content{
padding: 20px;
text-align: center;
}
.content img{
width: 300px;
height: 180px;
object-fit: cover;
border-radius: 20px;
border: 8px solid #bcd2e8;
filter: drop-shadow(6px 6px 6px rgba(0,0,0,0.4));
}
See the Pen Mod.2-Ex.4 by Anait (@velvetmade) on CodePen.
.content{
padding: 20px;
text-align: center;
}
.content img{
width: 300px;
height: 180px;
object-fit: cover;
opacity: 0.5;
}
See the Pen Mod.2-Ex.5 by Anait (@velvetmade) on CodePen.
.content{
padding: 20px;
text-align: center;
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/antelope-canyon-canyon-freestone-colorful-50686.jpeg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
color: #ffffff;
padding: 100px 20px;
font-family: 'Outfit', sans-serif;
}
.content h3{
color: #ffffff;
font-size: 30px;
margin-bottom: 0px;
}
See the Pen Mod.2-Ex.6 by Anait (@velvetmade) on CodePen.
.bg-box{
font-family: 'Outfit', sans-serif;
padding: 100px 20px;
text-align: center;
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
color: #ffffff;
}
See the Pen Mod.2-Ex.7 by Anait (@velvetmade) on CodePen.
.image{
text-align: center;
padding-top: 30px;
}
.image img{
width: 400px;
mask-image: linear-gradient(180deg,black 60%,transparent 100%);
-webkit-mask-image: linear-gradient(180deg,black 60%,transparent 100%);
}
See the Pen Mod.2-Ex.8 by Anait (@velvetmade) on CodePen.
.body{
background-color: #efefef;
padding-top: 40px;
padding-bottom: 40px;
}
.container{
font-family: 'Outfit', sans-serif;
width: 400px;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.container img{
width: 100%;
}
See the Pen Mod.3-Ex.1 by Anait (@velvetmade) on CodePen.
.content{
background-color: #00b4d8;
font-family: 'Outfit', sans-serif;
color: #ffffff;
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
align-items: center;
min-height: 400px;
padding: 30px 60px;
}
.content a{
font-family: 'Outfit', sans-serif;
text-decoration: none;
background-color: #023e8a;
font-size: 16px;
color: #ffffff;
border: 0px;
padding: 10px 20px;
border-radius: 4px;
font-weight: 600;
}
.content h3{
margin-bottom: 0px;
font-size: 24px;
}
See the Pen Mod.3-Ex.10 by Anait (@velvetmade) on CodePen.
.bg-banner{
position: relative;
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/pexels-photo-286763.jpeg');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
z-index: -5;
text-align: center;
padding: 100px
}
.bg-banner::after{
content: '';
background-color: rgba(0,0,0,0.5);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index:-3;
}
.bg-banner h1{
color: white;
z-index: 5;
font-family: 'Outfit', sans-serif;
}
See the Pen Mod.3-Ex.11 by Anait (@velvetmade) on CodePen.
.image{
width: 400px;
position: relative;
height: 300px;
}
.image img{
width: 100%;
height: 100%;
object-fit: cover;
}
.image::after{
content: '';
background-color: rgba(0,0,0,0.5);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
See the Pen Mod.3-Ex.2 by Anait (@velvetmade) on CodePen.
.image-container img{
width: 100%;
height: 90px;
object-fit: cover;
border-radius: 4px;
}
.image-boxes{
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-column-gap: 40px;
grid-row-gap: 40px;
font-family: 'Outfit', sans-serif;
padding: 20px;
}
.image-boxes p{
font-size: 12px;
}
See the Pen Mod.3-Ex.3 by Anait (@velvetmade) on CodePen.
.image-container img{
width: 100%;
height: 90px;
object-fit: cover;
border-radius: 4px;
}
.image-boxes{
display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-column-gap: 40px;
grid-row-gap: 40px;
font-family: 'Outfit', sans-serif;
padding: 20px;
}
.image-boxes p{
font-size: 12px;
}
See the Pen Mod.3-Ex.4 by Anait (@velvetmade) on CodePen.
.image-container{
font-family: 'Outfit', sans-serif;
padding: 20px;
}
.image-container img{
width: 100%;
height: 160px;
object-fit: cover;
}
.button {
display: inline-block;
background-color: #00308F;
padding: 10px 20px;
border-radius: 4px;
margin-right: 10px;
}
.button a{
text-decoration: none;
color: #ffffff;
}
.button:hover{
background-color: #002D62;
}
See the Pen Mod.3-Ex.5 by Anait (@velvetmade) on CodePen.
.main-box{
display: flex;
width: 100%;
}
.image-box img{
width: 300px;
height: 240px;
object-fit: cover;
}
h1{
font-size: 36px;
letter-spacing: -1px;
margin-bottom: 20px;
}
.text-content{
background-color: #f8eb93;
font-family: 'Outfit', sans-serif;
font-size: 14px;
margin-left: -50px;
margin-top: 80px;
padding: 20px 30px 30px 80px;
z-index: -1;
}
See the Pen Mod.3-Ex.6 by Anait (@velvetmade) on CodePen.
.text-content{
position: relative;
background-color: #ADD8E6;
margin-top: 30px;
padding: 40px 100px 140px 60px;
}
.text-content p{
font-family: 'Outfit', sans-serif;
}
h1{
font-size: 60px;
font-family: 'Outfit', sans-serif;
letter-spacing: -1px;
margin-bottom: 30px;
margin-top: 0px;
}
.arrow-box img{
width: 60px;
object-fit: contain;
padding-left: 15px;
padding-top: 4px;
}
.arrow-box p{
font-weight: 600;
}
.arrow-box{
display: flex;
position: absolute;
bottom: 10px;
right: 30px;
}
See the Pen Mod.3-Ex.7 by Anait (@velvetmade) on CodePen.
.text-content{
position: relative;
margin-top: 30px;
padding: 40px 100px 140px 60px;
}
.text-content p{
font-family: 'Outfit', sans-serif;
}
h1{
font-size: 60px;
font-family: 'Outfit', sans-serif;
letter-spacing: -1px;
margin-bottom: 30px;
margin-top: 0px;
}
.arrow-box img{
width: 60px;
object-fit: contain;
}
.arrow-box p{
font-weight: 600;
}
.arrow-box{
padding-top: 40px;
}
.chat-icon img{
width: 60px;
}
.chat-icon{
position: fixed;
bottom: 20px;
right: 20px;
}
See the Pen Mod.3-Ex.8 by Anait (@velvetmade) on CodePen.
.text-content img{
width: 300px;
border-radius: 10px;
}
h1{
font-size: 60px;
font-family: 'Outfit', sans-serif;
letter-spacing: -1px;
margin-bottom: 30px;
margin-top: 20px;
}
h4{
background-color: #FFD7CD;
padding: 20px;
border-radius: 10px;
font-family: 'Outfit', sans-serif;
font-weight: 600;
position: sticky;
top: 0;
}
.text-content{
margin-top: 30px;
padding: 40px 60px 140px 60px;
}
.text-content p{
font-family: 'Outfit', sans-serif;
font-size: 16px;
}
.text-content a{
color: #FF7A59;
font-size: 16px;
}
.link-box{
padding-top: 20px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
}
.button a{
background-color: #FF7A59;
color: #ffffff;
font-family: 'Outfit', sans-serif;
font-size: 16px;
font-weight: 600;
text-decoration: none;
padding: 20px;
border-radius: 10px;
display: inline-block;
}
See the Pen Mod.3-Ex.9 by Anait (@velvetmade) on CodePen.
.bg-box{
font-family: 'Outfit', sans-serif;
background-color: #ADD8E6;
padding: 80px 140px 80px 30px;
text-align: left;
position: relative;
overflow: hidden;
}
.bg-box img{
width: 380px;
position: absolute;
bottom: 0;
right: -80px;
}
See the Pen Mod.4-Ex.1 by Anait (@velvetmade) on CodePen.
.content{
text-align: center;
padding: 40px;
font-family: 'Outfit', sans-serif;
color: black;
}
.icon-box{
display: inline-block;
padding: 30px;
border-radius: 50%;
fill: blue;
background-color: #f6faff;
border: 1px solid #daecff;
}
.icon-box svg{
width: 40px;
height: 40px;
}
See the Pen Mod.4-Ex.2 by Anait (@velvetmade) on CodePen.
.icon-box{
font-family: 'Outfit', sans-serif;
text-align: center;
padding: 40px 20px;
}
.icon-box img{
border: 1px solid #beddfe;
border-radius: 8px;
width: 100px;
padding: 20px;
margin-bottom: 0px;
}
h3{
font-size: 30px;
margin-bottom: 0px;
}
See the Pen Mod.4-Ex.3 by Anait (@velvetmade) on CodePen.
.sm-icons .fa{
color: #ffffff;
background-color: #000000;
width: 30px;
height: 30px;
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
text-decoration: none;
}
.sm-icons {
display: flex;
flex-direction: row;
justify-content: center;
padding: 30px;
background-color: #d5d5d5;
column-gap: 10px;
}
See the Pen Mod.4-Ex.4 by Anait (@velvetmade) on CodePen.
.labels{
font-size: 16px;
font-family: 'Outfit', sans-serif;
color: #000080;
padding: 30px;
}
.labels span{
margin-right: 6px;
background-color: #D4F1F4;
padding: 5px 10px;
border-radius: 4px;
}
.labels span::before{
margin-right: 6px;
}
.free::before{
content: '\f02b';
font-family: 'FontAwesome';
}
.international::before{
content: '\f0ac';
font-family: 'FontAwesome';
}
.donation::before{
content: '\f004';
font-family: 'FontAwesome';
}
See the Pen Mod.4-Ex.5 by Anait (@velvetmade) on CodePen.
.content{
font-family: 'Outfit', sans-serif;
padding: 20px;
}
.content p{
color: #05445E;
margin-bottom: 30px;
}
.button{
text-decoration: none;
background-color: #05445E;
padding: 10px 20px;
border-radius: 4px;
color: #ffffff;
font-weight: 600;
}
.button:hover{
background-color: #152238;
}
.button::before{
content:'\f019';
font-family: 'FontAwesome';
margin-right: 10px;
font-weight: 400;
}
See the Pen Mod.4-Ex.6 by Anait (@velvetmade) on CodePen.
.content{
font-family: 'Outfit', sans-serif;
padding: 20px;
}
.content p{
color: #05445E;
margin-bottom: 30px;
}
.button{
text-decoration: none;
background-color: #05445E;
padding: 10px 20px 10px 45px;
border-radius: 4px;
color: #ffffff;
font-weight: 600;
}
.button:hover{
background-color: #152238;
}
.button::before{
content:'';
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/upload-icon-custom-white-20px-01.svg');
background-repeat: no-repeat;
background-size: contain;
width: 20px;
height: 20px;
position: absolute;
margin-right: 10px;
left: 42px;
}
See the Pen Mod.5-Ex.1 by Anait (@velvetmade) on CodePen.
.content{
display: flex;
align-items: center;
column-gap: 20px;
padding: 30px;
font-family: 'Outfit', sans-serif;
}
.content p{
font-size: 14px;
}
.price-box{
text-align: center;
background-color: #f5f5f5;
padding: 60px 30px;
border-radius: 8px;
width: 100%;
}
.price-box img{
width: 20px;
}
.price-box h4{
margin-top: 10px;
}
.price-box:nth-child(2){
background-color: #ffffff;
border: 1px solid #7CB9E8;
}
.price-box:nth-child(2) h4{
font-size: 30px;
margin-bottom: 0px;
margin-top: 10px;
}
.price-box:nth-child(2) img{
width: 40px;
}
See the Pen Mod.5-Ex.10 by Anait (@velvetmade) on CodePen.
.text-content{
font-family: 'Outfit', sans-serif;
padding: 30px;
}
.text-content ol{
list-style-position: inside;
padding-left: 0px;
margin-left: 0px;
}
.text-content li{
background-color: #E6E6FA;
text-indent: -1em;
padding: 1em 2.2em;
margin-bottom: 10px;
border-radius: 4px;
}
See the Pen Mod.5-Ex.11 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
color: #808080;
}
.text-content p{
font-size: 16px;
line-height: 21px;
margin-bottom: 25px;
}
.text-content h3{
font-size: 24px;
line-height: 24px;
color: #4361ee;
margin-bottom: 16px;
}
.text-content ol{
padding-left: 0;
list-style-position: inside;
}
.text-content ol li{
margin-bottom: 10px;
counter-increment: li;
}
.text-content ol li::marker{
content: 'Step ' counter(li) ': ';
font-weight: 600;
}
See the Pen Mod.5-Ex.12 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
color: #808080;
}
.text-content p{
font-size: 16px;
line-height: 21px;
margin-bottom: 25px;
}
.text-content h3{
font-size: 24px;
line-height: 24px;
color: #4361ee;
margin-bottom: 16px;
}
.text-content ol{
padding-left: 0;
list-style-position: inside;
list-style-type: none;
}
.text-content ol li{
margin-bottom: 10px;
counter-increment: li;
}
.text-content ol li::before{
content: 'Step ' counter(li) ': ';
font-weight: 600;
display: block;
}
See the Pen Mod.5-Ex.13 by Anait (@velvetmade) on CodePen.
.bg-box{
font-family: 'Outfit', sans-serif;
padding: 80px 100px;
text-align: center;
position: relative;
}
.bg-box::before{
content: '';
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/antelope-canyon-canyon-freestone-colorful-50686.jpeg');
position: absolute;
top: 0px;
left: 0px;
background-size: cover;
background-position: center;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.3;
}
See the Pen Mod.5-Ex.14 by Anait (@velvetmade) on CodePen.
.container{
font-family: 'Outfit', sans-serif;
text-align: center;
}
.container h2{
font-size: 50px;
}
.container h2 span{
font-size: 28px;
}
.container h2 span:nth-child(2){
visibility: hidden;
}
See the Pen Mod.5-Ex.15 by Anait (@velvetmade) on CodePen.
.image-box img{
width: 400px;
}
.image-box {
position: relative;
}
.image-box:nth-child(2){
margin-top: -120px;
margin-left: 100px;
z-index: -1;
}
.image-box:nth-child(1){
z-index: 2;
}
.my-text h1{
font-size: 60px;
font-family: 'Outfit', sans-serif;
letter-spacing: -1px;
margin-top: -30px;
padding-left: 20px;
z-index: -3;
position: relative;
}
See the Pen Mod.5-Ex.2 by Anait (@velvetmade) on CodePen.
.menu-items{
font-family: 'Outfit', sans-serif;
}
.menu-items ul{
list-style-type: none;
padding-left: 0px;
text-align: center;
background-color: #00308F;
padding: 20px;
}
.menu-items ul li{
display: inline-block;
text-transform: uppercase;
letter-spacing: 1.2px;
font-size: 12px;
color: #ffffff;
margin-right: 15px;
}
.menu-items ul li:nth-last-child(1) a{
text-decoration: none;
color: #ffffff;
background-color: #7CB9E8;
padding: 10px 20px;
border-radius: 4px;
font-weight: 600;
}
See the Pen Mod.5-Ex.3 by Anait (@velvetmade) on CodePen.
.quote p{
font-family: 'Outfit', sans-serif;
font-size: 20px;
padding: 30px;
line-height: 1.4;
color: grey;
}
.quote span{
font-weight: 700;
color: black;
background: linear-gradient(180deg, transparent 0%, transparent 50%, #F7D8BA 50%, #F7D8BA 90%, transparent 90%, transparent 100%);
padding: 0px 4px;
}
See the Pen Mod.5-Ex.4 by Anait (@velvetmade) on CodePen.
.content{
padding: 10px 40px;
}
.content h1{
font-family: 'Outfit', sans-serif;
position: relative;
}
.content h1::before{
content: '';
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/Wave-dark-blue.svg');
position: absolute;
width: 50px;
height: 20px;
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
margin-top: -20px;
margin-left: -10px;
}
See the Pen Mod.5-Ex.5 by Anait (@velvetmade) on CodePen.
.heading h2{
font-family: 'Outfit', sans-serif;
position: relative;
}
.heading{
padding: 20px;
}
.heading h2::before{
content: '';
border-bottom: solid #8C8CD7 6px;
width: 40px;
position: absolute;
margin-top: -6px;
}
See the Pen Mod.5-Ex.6 by Anait (@velvetmade) on CodePen.
.text-content{
font-family: 'Outfit', sans-serif;
}
.text-content ul{
padding-left: 0px;
list-style-type: none;
}
.text-content ul li{
background: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/Wave-dark-blue.svg') no-repeat 0 0.45em;
background-size: 1em;
padding-left: 1.5em;
margin-bottom: 10px;
}
See the Pen Mod.5-Ex.7 by Anait (@velvetmade) on CodePen.
.text-content{
font-family: 'Outfit', sans-serif;
}
.text-content ul{
padding-left: 0px;
list-style-type: none;
}
.text-content li{
padding-left: 2em;
margin-bottom: 10px;
position: relative;
}
.text-content li::before{
content: '';
background: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/Wave-dark-blue.svg') no-repeat;
background-size: contain;
background-position: center center;
position: absolute;
top: 0;
left: 0;
width: 20px;
height: 20px;
}
See the Pen Mod.5-Ex.8 by Anait (@velvetmade) on CodePen.
.text-content{
font-family: 'Outfit', sans-serif;
}
.text-content ul{
padding-left: 0px;
list-style-type: none;
}
.text-content li{
margin-bottom: 10px;
}
.text-content li::before{
content: '\f019';
font-family: 'FontAwesome';
margin-right: 10px;
}
See the Pen Mod.5-Ex.9 by Anait (@velvetmade) on CodePen.
.text-content{
padding: 25px;
font-family: 'Outfit', sans-serif;
font-size: 16px;
line-height: 21px;
color: #808080;
}
.text-content ol{
padding-left: 1em;
}
.text-content ol li{
padding-left: 10px;
margin-bottom: 20px;
position: relative;
}
.text-content ol li::before{
content: '';
background-color: #8C8CD7;
position: absolute;
width: 1.8em;
height: 1.8em;
display: inline-block;
border-radius: 50%;
z-index: -1;
top: -0.25em;
left: -1.7em;
}
.text-content li::marker{
color: #ffffff;
}
See the Pen Mod.6-Ex.1 by Anait (@velvetmade) on CodePen.
:root{
--border-radius-global: 10px;
--font-family-global: 'Outfit', sans-serif;
--body-copy-font-size: 16px;
--accent-color-global: #FF7A59;
--hover-color: #ef6948;
--padding-global: 20px;
--text-semibold: 600;
}
.text-content img{
width: 300px;
border-radius: var(--border-radius-global);
}
.text-content h1{
font-size: 50px;
font-family: var(--font-family-global);
letter-spacing: -1px;
margin-bottom: 30px;
margin-top: 20px;
}
.text-content h4{
background-color: #FFD7CD;
padding: var(--padding-global);
border-radius: var(--border-radius-global);
font-family: var(--font-family-global);
font-weight: var(--text-semibold);
}
.text-content{
padding: 40px;
}
.text-content p{
font-family: var(--font-family-global);
font-size: var(--body-copy-font-size);
}
.link-box a{
color: var(--accent-color-global);
font-size: var(--body-copy-font-size);
}
.link-box a:hover{
color: var(--hover-color);
}
.link-box{
margin-top: 20px;
font-family: var(--font-family-global);
font-size: var(--body-copy-font-size);
}
.button a{
background-color: var(--accent-color-global);
color: #ffffff;
font-family: var(--font-family-global);
font-size: var(--body-copy-font-size);
font-weight: var(--text-semibold);
text-decoration: none;
padding: var(--padding-global);
border-radius: var(--border-radius-global);
display: inline-block;
}
.button a:hover{
background-color: var(--hover-color);
}
See the Pen Mod.6-Ex.2 by Anait (@velvetmade) on CodePen.
:root{
--accent-color: 255,83,73;
--hover-color: 252, 70, 57;
}
.bg-box{
font-family: 'Outfit', sans-serif;
background-color: rgba(var(--accent-color), 0.2);
padding: 30px 80px;
text-align: center;
}
.bg-box h1{
color: rgb(var(--accent-color));
}
.bg-box a{
text-decoration: none;
color: white;
background-color: rgb(var(--accent-color));
padding: 10px 25px;
display: inline-block;
border-radius: 6px;
}
.bg-box a:hover{
background-color: rgb(var(--hover-color));
}
.sm-icons .fa{
color: #ffffff;
background-color: rgba(var(--accent-color), 0.5);
width: 30px;
height: 30px;
font-size: 18px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
text-decoration: none;
}
.sm-icons .fa:hover{
background-color: rgba(var(--hover-color), 0.5);
}
.sm-icons {
display: flex;
justify-content: center;
padding: 30px;
gap: 10px;
}
See the Pen Mod.6-Ex.3 by Anait (@velvetmade) on CodePen.
.menu-items ul{
font-family: 'Outfit', sans-serif;
list-style-type: none;
padding-left: 0px;
background-color: #00308F;
display: flex;
column-gap: 15px;
align-items: center;
height: 60px;
padding: 0px 20px;
margin: 0px;
}
.menu-items ul li{
text-transform: uppercase;
letter-spacing: 1.2px;
font-size: 12px;
color: #ffffff;
}
.menu-items ul li:nth-last-child(1) a{
text-decoration: none;
color: #ffffff;
background-color: #7CB9E8;
padding: 10px 16px;
border-radius: 4px;
font-weight: 600;
display: inline-block;
}
.menu-items ul li:nth-last-child(1){
margin-left: auto;
}
.main-box{
height: calc(100vh - 60px);
background-color: #00308F;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: -2;
}
.main-box::before{
content: '';
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/pexels-photo-254770.jpeg');
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
mix-blend-mode: overlay;
filter: grayscale(100%);
opacity: 0.6;
z-index: -1;
}
.main-box h1{
margin: 0px;
font-family: 'Outfit', sans-serif;
color: #ffffff;
font-size: 60px;
}
See the Pen Mod.6-Ex.4 by Anait (@velvetmade) on CodePen.
.bg-box{
font-family: 'Outfit', sans-serif;
padding: 30px 80px;
text-align: center;
}
.bg-box img{
width: 20em;
height: 12em;
font-size: 16px;
object-fit: cover;
border-radius: 0.8em;
}
.bg-box p{
font-size: 16px;
line-height: 1.6em;
}
.bg-box h1{
color: #FF5349;
}
.bg-box a{
text-decoration: none;
color: white;
font-size: 16px;
background-color: #FF5349;
padding: 0.6em 1.5em;
display: inline-block;
border-radius: 6px;
}
.bg-box a:hover{
background-color: #FC4639;
}
.sm-icons .fa{
color: #ffffff;
background-color: #FF5349;
width: 2em;
height: 2em;
font-size: 15px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
text-decoration: none;
}
.sm-icons .fa:hover{
background-color: #FC4639;
}
.sm-icons {
display: flex;
justify-content: center;
padding: 0px 30px 30px 30px;
gap: 10px;
}
See the Pen Mod.6-Ex.5 by Anait (@velvetmade) on CodePen.
.container{
background-color: #96d8eb;
}
.container ul{
font-family: 'Outfit', sans-serif;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
list-style-type: none;
padding-left: 0px;
padding-top: 30px;
margin: 0px;
}
.container ul li:first-child,
.container ul li:last-child{
grid-column: span 3;
text-align: center;
}
.container ul li{
padding: 10px 40px;
}
.container ul li:first-child{
margin-bottom: 20px;
font-size: 22px;
font-weight: 700;
}
.container ul li:last-child{
margin-top: 40px;
background-color: #00465a;
color: #ffffff;
font-size: 14px;
}
See the Pen Exam 1 by Anait (@velvetmade) on CodePen.
.content{
font-family: 'Outfit', sans-serif;
}
.hero-banner{
min-height: 100px;
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/bled-2608425.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center -100px;
display: flex;
align-items: center;
justify-content: center;
}
.hero-banner h1{
color: #ffffff;
}
.text-content{
padding: 30px;
}
.text-content p{
color: grey;
font-size: 15px;
line-height: 1.5;
}
.text-content a{
background-color: #24a0ed;
color: white;
font-family: 'Outfit', sans-serif;
font-weight: 600;
font-size: 16px;
border-radius: 4px;
display: inline-block;
text-decoration: none;
border: 0px;
padding: 8px 16px;
margin-bottom: 40px;
}
.text-content a:hover{
background-color: #1692df;
}
.image-box img{
width: 200px;
height: 300px;
object-fit: cover;
margin-right: 30px;
}
.image-box{
display: flex;
}
.quote{
background-color: #f5f5f5;
padding: 20px 30px;
text-align: center;
border-radius: 10px;
font-style: italic;
}
See the Pen Exam 2 by Anait (@velvetmade) on CodePen.
.content{
padding: 25px;
font-family: 'Outfit', sans-serif;
}
.image-container img{
width: 120px;
aspect-ratio: 1;
object-fit: cover;
border-radius: 10px;
}
.image-container p{
font-size: 12px;
}
.image-container h3{
font-size: 15px;
margin-bottom: 0px;
}
.image-boxes{
display: flex;
column-gap: 20px;
flex-direction: row;
}
See the Pen Exam 3 by Anait (@velvetmade) on CodePen.
.container{
font-family: 'Outfit', sans-serif;
}
.hero-banner{
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/beach-832346.jpg');
min-height: 200px;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
}
.hero-banner h2{
color: #ffffff;
font-size: 32px;
}
.content{
padding: 30px;
}
.content ul{
list-style-type: none;
padding-left: 0px;
}
.content li{
display: inline-block;
background-color: #E6E6FA;
padding: 6px 12px;
border-radius: 4px;
font-weight: 600;
font-size: 13px;
margin-right: 4px;
}
.content a{
background-color: #4B0082;
color: #ffffff;
text-decoration: none;
padding: 10px 20px;
display: block;
border-radius: 4px;
text-align: center;
}
.content a:hover{
background-color: #1d1160;
}
.icon-boxes{
display: flex;
margin-top: 30px;
column-gap: 20px;
}
.icon-box-single{
text-align: center;
padding: 60px 30px;
background-color: #E6E6FA;
border-radius: 4px;
display: flex;
flex-direction: column;
align-items: center;
}
.icon-box-single h4{
margin-bottom: 0px;
}
.icon-box-single-image img{
width: 80px;
}
.icon-box-single-image{
background-color: #ffffff;
height: 100px;
width: 100px;
display: flex;
border-radius: 50%;
justify-content: center;
align-items: center;
}
See the Pen Exam 4 by Anait (@velvetmade) on CodePen.
.pricing{
font-family: 'Outfit', sans-serif;
display: flex;
column-gap: 10px;
align-items: center;
justify-content: center;
margin-top: 40px;
}
.pricing p{
font-size: 13px;
}
.price-box{
background-color: #daf0ff;
width: 120px;
padding: 80px 20px;
position: relative;
text-align: center;
border-radius: 10px;
min-height: 240px;
}
.price-box:nth-child(2){
border: 1px solid #5be2ff;
background-color: #ffffff;
}
.price-box h2{
text-transform: uppercase;
letter-spacing: 6px;
margin-bottom: 40px;
font-size: 14px;
}
.price-box h3{
position: absolute;
top: 10px;
left: 0;
width: 100%;
padding: 8px 0px;
text-transform: uppercase;
letter-spacing: 4px;
font-size: 12px;
background-color: #1870de;
color: #ffffff;
}
.price-box h4{
font-size: 40px;
margin-bottom: 0px;
position: absolute;
bottom: 40px;
left: 0px;
width: 100%;
}
.price-box h4 span{
font-size: 26px;
}
.price-box h4 span:nth-child(2){
visibility: hidden;
}
See the Pen Exam 5 by Anait (@velvetmade) on CodePen.
.main-container{
font-family: 'Outfit', sans-serif;
}
.menu{
display: flex;
background-color: #ffffff;
filter: drop-shadow(0px 8px 32px rgba(0,0,0,0.1));
padding: 0px 20px;
height: 80px;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 10;
}
.menu-header{
width: 20%;
}
.menu-header h1{
font-size: 20px;
}
.menu-links{
display: flex;
justify-content: end;
align-items: center;
width: 75%;
}
.menu-links ul{
list-style-type: none;
display: flex;
}
.menu-links li{
text-transform: uppercase;
font-size: 13px;
letter-spacing: 2px;
margin-right: 20px;
}
.menu-links a{
text-decoration: none;
background-color: #FF5349;
color: #ffffff;
padding: 8px 20px;
border-radius: 6px;
}
.menu-links a:hover{
background-color: #e8392f;
}
.content{
text-align: center;
margin-top: 80px;
}
.main-body{
padding: 0px 30px;
margin-top: 40px;
}
.hero{
background-image: url('https://www.cssgamelab.com/wp-content/uploads/2024/06/antelope-canyon-canyon-freestone-colorful-50686.jpeg');
background-size: cover;
text-align: center;
padding: 120px 0px;
position: relative;
}
.hero::after{
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: linear-gradient(180deg, transparent 30%, white 100%);
}
.hero h1{
color: #ffffff;
}
.squares{
display: flex;
margin-left: auto;
margin-right: auto;
justify-content: center;
margin: 40px 0px;
}
.number{
width: 60px;
aspect-ratio: 1;
background-color: #FF5349;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
margin: 5px;
border-radius: 8px;
}
.number h1{
margin: 0px;
line-height: 1;
}
First click on the green ‘What I will be making’ button. This is how your end result should look like.
Next, click on the ‘What I need’ button to get some basic parameters to use in the code. Such as the font family, colors, image URLs etc. These are just recommendations. Use your own judgement for the rest of the values, such as paddings, margins, spacing and size.
You don’t need to know how to write HTML for these exercises. However, you WILL need to take a look at the ‘HTML’ code in the exercise. You can switch from HTML to CSS tab in the Codepen screen. Then read the built HTML code for each exercise to understand the structure and find the classes that are defined for the elements that you will be editing. Use those predefined classes to style them in CSS.
Click on the ‘CSS’ tab in the Codepen screen and start typing your CSS code here, just below the ‘Write CSS code here’ comment. You can also delete this comment if you wish.
For example, if a ‘div’ has a class “text-content” in HTML, you can then style this class in CSS tab. Just don’t forget to add a dot before calling a class out (.text-content)
You should see a live preview of the CSS code that you are editing in the ‘Result’ tab to the right of the Codepen screen.
If you are stuck, click on the ‘Show me the code’ button. This will reveal the code that you can also completely copy and paste in the CSS tab of the exercise to see the result.
Or you can just go back to the lessons and watch them again.
Have fun and feel free to reach out!