My background picture is repeating. How can I stop it?

  • Thread starter Thread starter marina
  • Start date Start date
Use CSS:

<head>
<title>page title</title>
<style type=text/"css">
body {background: blue url(images/background.jpg) repeat: no-repeat center
;}
</style>
</head>

The above is the <head> section of the page in Code View. There should be
other <meta ... >tags as well as the above.
The CSS in the <style..> block sets a blue background to the page, and sets
an image (images/background.jpg) in the center of the page as a background.
The image will not repeat.
Change the colour to suit the image.

--
Ron Symonds
Microsoft MVP (Expression Web)
http://www.rxs-enterprises.org/fp

Reply only to group - emails will be deleted unread.
 
Back
Top