Learn CSS background in 3 minutes

8 Views
Published
CSS background image tutorial example explained

#CSS #background #image

(00:00:00) intro
(00:00:24) color
(00:00:33) linear-gradient
(00:02:21) image

body{
background-image: url("myBackground.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: cover;
}
h1{
background: linear-gradient(to right,skyblue, white);
background-repeat: no-repeat;
background-attachment: fixed;
}
p{
background: linear-gradient(skyblue, white);
background-repeat: no-repeat;
background-attachment: fixed;
}
Category
Bro Code
Tags
HTML, CSS, Tutorial
Be the first to comment