css background image
background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
css background image
background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
html background image
<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->
<head>
<style>
body {
background-image: url(https://wallup.net/wp-content/uploads/2019/09/110394-cats-grey-kittens-fluffy-fat-grass-animals-cat-kitten-baby-cute-748x468.jpg)
}
</style>
<body>
You have set the background image!
</body>
how to add background in css
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
background image css
.wrapper {
background: url('./images/homeBg.png') no-repeat;
background-size: 100vw;
float: left;
height: 100vw;
width: 100vw;
}
make image background of div
background-image: url("photographer.jpg");
background image
div {
background-color: #ffffff;
background-image: url("img_tree.png");
background-repeat: no-repeat;
background-attachment: scroll|fixed|local|initial|inherit;
background-position: right top | x% y% | xpos ypos;
background-clip: border-box|padding-box|content-box|initial|inherit;
background-size: auto|length|cover|contain|initial|inherit;
}
//shorthand:
div {
background: #ffffff url("img_tree.png") no-repeat right top;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us