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

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top