Hi friend,
How can I add background image to a webpage using CSS? Can you give me some sample codes on how to insert background image to a webpage? Thanks.
Adding background image to a page using css
Background Image For Website:
Â
If you want to add the background image on the website, you can use the CSS code. This process is shown in a photo Web site, across the entire page. This will be the first to enunciate a picture and upload it to the server.
Â
CSS Code Tutorials:
Â
You can use this code for add a background image easily in your website by use this CSS code :
Â
<style type="text/css" media="screen">Â
body {Â
background-color:#000000;Â
background-attachment: fixed;Â
background-image: url(images/picture.jpg);Â
background-repeat: no-repeat;Â
background-position: right bottom;Â
}Â
</style>
Â
URL of your image with the URL of the image must match the CSS code should be used. You can use this short code too for add a background image in your site. You should try to bellows code for add a background image in any website:
Â
<body background="images/picture.gif">
Â
Thanks