How do i set the background to a fixed centered instead of tiled?

G

Guest

We are trying to design a background for our band's website and are having
some problems figuring out a html code to take the tiled setting off. we
would like for it to be a centered, fixed background, in other words we only
want one picture on the background not the same one repeated multiple times
over the page. any help or codes would be greatly appreciated.
 
S

Stefan B Rusynko

Add the following style to your HEAD section
<style type="text/css" >
body {
background-image: url('yourimagepath/imagenamehere');
background-repeat: no-repeat; background-position: center;
}
</style>


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| We are trying to design a background for our band's website and are having
| some problems figuring out a html code to take the tiled setting off. we
| would like for it to be a centered, fixed background, in other words we only
| want one picture on the background not the same one repeated multiple times
| over the page. any help or codes would be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top