answersLogoWhite

0

How to use CSS in making the picture a background?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

To make a picture a background of a web site using CSS, you will use the different background properties, which are: background-color, background-image, background-repeat, background-attachment, and background-position. The specific property you are looking for is background-image. To use this property you would declare in your style sheet the following:

body {

background-image: url('paper.jpg');

}

This is telling the web browser to use the image paper.jpg and make it the background of the entire page. The other background properties control whether the backgound is repeated along the x and/or y axis, the position on the screen the image begins at, whether the background is fixed or scrolls with the page, and the background color.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to use CSS in making the picture a background?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you make a background on a webpage using HTML?

Making a background on a webpage in HTML is deprecated; you are advised to use CSS instead. However, if you must use HTML and only HTML, then place the "background" attribute in the body tag of the document in question like so: <body background="http://www.example.com/picture.jpg">


What CSS property specifies the background color of a table?

Use the CSS declaration "background-color" For instance... <style type="text/css"> body { background-color: red; } </style> That code will change the background color to red. Background color will take the same values for a color as all other CSS color. A named color keyword, a hex RGB value, a decimal RGB value, and a decimal RGBA value.


In CSS can a background be fixed?

To set a fixed background image use the following:body{background-image:url('your_image.gif');background-repeat:no-repeat;background-attachment:fixed;}....taken from the w3schools tutorial.


How do you give a link for a background image using CSS?

You will need to use the url() function. For example: background-image: url('/images/bg.png');


How do to create a static webpage with only one image as background?

Use html only and that should give you a static page. You can put image as background by using css


How do you move a picture to the right side of a website without making it drop down in HTML?

Use the CSS declaration "float:right;" The image will move to the right of the page, but will not attempt to "clear" the other elements (that's what the "drop down" is called.) I've included a good CSS Float tutorial in the Related Links.


How do I configure a background image for a webpage using CSS?

There are a couple of ways to accomplish this: Inline CSS: <span style="background-color: #FF0000;">Blah</span> Or via a CSS Style: <style type="text/css"> .styleName { background-color: #FF0000; } </style> <span class="styleName">Blah</span>


How do you adjust the size of the background of your HTML design?

You use CSS (Cascading Stylesheets) to add backgrounds to block level elements inside an HTML design. If you want a design for the entire page, the CSS markup will use the "body" selector. The background-image rule is then applied. When you're finished, it might look something like this: body { background-image: url('images/bg.png'); background-repeat: repeat-x; } CSS isn't part of HTML, but a separate language contained in either an external file, or in code added along with the HTML in your HTML document.


What is css on MySpace?

CSS is what website designers use to format there page such as the background colour of the page and the text colour and size, you can use it in myspace in the same way, although i am supposing you are using a prebuilt one, just copy and paste the code into your about me section


What do you do to change the background on your ning?

go on your network and from there "my page" once your on your page hit change your theme......right next to change picture. You'll get all the backrounds there that you could change or use. They have 2 taps, one is advanced if you know css. k peace


If you use CSS to configure both the background image and the background color what will happen?

In most browsers the background image will be shown. If the image has been configured so as not to repeat, and the element is larger than the background image then the area that is not covered by the background image will display the background color. DJL


What is the css code for a multi-background div?

It is not clear if you want multiple "panes" or you want it to "rotate." To switch backgrounds, you will have to use JavaScript. To do multiple panes, try "background-image:url(mage1.jpg); background-repeat:none;" and then add on.