Adding background image to a page using css

Asked By 50 points N/A Posted on -
qa-featured

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.

SHARE
Answered By 0 points N/A #102265

Adding background image to a page using css

qa-featured
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/Register to Answer

Related Questions