- In this we are adding design to the HTML elements.
body{
color: #40514E;
margin: 0;
text-align: center;
font-family: 'Merriweather', serif;
}
p{
line-height: 2;
}
hr{
border: dotted #EAF6F6 6px;
border-bottom: none;
width: 5%;
margin: 100px auto;
}
a{
color: #11999E;
font-family: 'Montserrat', sans-serif;
margin: 10px 20px;
text-decoration: none;
}
a:hover{
color: #EAF6F6;
}
h1{
color: #66BFBF;
font-family: 'Sacramento', cursive;
margin: 50px auto 0 auto;
font-size: 5.625rem; /* 100% = 16px ... 90px/16=562.5% //1em=16px=100% */
}
h2{
color: #66BFBF;
font-weight: normal;
font-family: 'Montserrat', sans-serif;
font-size: 2.5rem;
margin-top: 10px;
padding-bottom: 10px;
}
h3{
color: #11999E;
font-family: 'Montserrat', sans-serif;
}- We are adding CSS to the containers.
.top-container{
background-color: #E4F9F5; /* #E4F9F5; */
position: relative;
padding-top: 100px;
}
.coppyright{
color: #EAF6F6;
font-size: 0.75rem;
padding: 20px 0;
}
.top-cloud{
position: absolute;
right: 300px;
top: 40px;
}
.bottom-cloud{
position: absolute;
left: 250px;
bottom: 300px;
}
.middle-container{
margin: 100px 0;
}
.bottom-container{
background-color: #66BFBF;
padding: 50px 0 20px;
}
.skill-row{
width: 50%;
margin: 100px auto 100px auto;
text-align: left;
line-height: 2;
}
.pro{
text-decoration: underline;
}
.intro{
width: 30%;
margin: auto;
}
.contact-message{
width: 40%;
margin: 40px auto 60px;
}
.code-img{
width: 25%;
border-radius: 50%;
float: left;
margin-right: 30px;
}
.chilli{
width: 25%;
float: right;
margin-left: 30px;
}In this we are designing Button with the help of CSS.
.btn {
background: #11cdd4;
background-image: -webkit-linear-gradient(top, #11cdd4, #11999e);
background-image: -moz-linear-gradient(top, #11cdd4, #11999e);
background-image: -ms-linear-gradient(top, #11cdd4, #11999e);
background-image: -o-linear-gradient(top, #11cdd4, #11999e);
background-image: linear-gradient(to bottom, #11cdd4, #11999e);
-webkit-border-radius: 8;
-moz-border-radius: 8;
border-radius: 8px;
font-family: 'Montserrat', sans-serif;
color: #ffffff;
font-size: 20px;
padding: 10px 20px 10px 20px;
text-decoration: none;
}
.btn:hover {
background: #30e3cb;
background-image: -webkit-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -moz-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -ms-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: -o-linear-gradient(top, #30e3cb, #2bc4ad);
background-image: linear-gradient(to bottom, #30e3cb, #2bc4ad);
text-decoration: none;
}