Monday, 19 October 2020

Part 2 How to convert PSD to HTML Hero Section CSS [HTML CSS] [Code Fusion]

 


Here is the Source code for the video

/* font  */
/* font-family: 'Lato', sans-serif; */

/* CSS RESET */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* CSS RESET END */

/* helper class */
.m0 {
    margin: 0;
}

.right-align {
    float: right;
}

.left-align {
    float: left;
}

.clear-float {
    clear: both;
}

.clearfix:after {
    content: " ";
    /* Older browser do not support empty content */
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 18px;
}

a {
    text-decoration: none;
    color: #000;
}

/* HERO SECTION  */

#hero {
    background-image: url("../img/hero-bg.png");
    color: #fff;
    background-position: center;
    background-size: cover;
    height: 745px;

}

header {
    padding-top: 60px;
}

.container {
    max-width: 1163px;
    margin: 0 auto;
    padding: 0 20px;
}


.container nav ul li {
    display: inline;
}

.container nav ul li a {
    color: #fff;
    font-size: 18px;
    line-height: 13px;
    margin-right: 56px;
    text-transform: uppercase;
    transition: 0.3s;
}

.container nav ul li a:hover {
    font-weight: 700;
    color: #000;
    transition: 0.3s;
}

.cta {
    margin-top: 177px;
    text-align: center;
}

.cta h1 {
    font-size: 65px;
    line-height: 70px;

}

.cta h2 {
    margin: 30px 0 90px 0;
    font-size: 33px;
}

.btn-more {
    color: #fff;
    padding: 20px 54px;
    border: 1px solid #ffffff;
    border-radius: 57px;
    font-size: 18px;
    transition: 0.3s;
}

.btn-more:hover {
    background: #fff;
    color: #7147a5;
    transition: 0.3s;
    font-size: 20px;
}

Please Like and subscribe to my channel

No comments:

Post a Comment