No of visitors who read this post:
241
Category:
Prog\Scripting Languages
Type:
Question
Author:
Abigail Jackson
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.
- Login or Signup Now to post comments
#
Submitted by Gideon Yasti on Sun, 2012-04-08 22:31.
Comment Id: 53139
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
- Login or Signup Now to post comments

