background image repeats on scrolling page...

Posted on 2003-11-24
Last Modified: 2010-04-09
OK, I have this page...

How can I prevent the image in the <body> tag from repeating on the scrolling pages like the one above?

Dark Magneto
Question by:darkmagneto
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 29

Accepted Solution

coreybryant earned 250 total points
ID: 9811693
It seems that you want the background image to repeat horizontally & not vertically?  You can also then cut down on the background image some.  Instead of using it in the BODY tag, put this in the <HEAD>:

<style type="text/css">
background-image: url("../img/subback.gif");
background-repeat: repeat-x

That will have the background image repeat horizontally & that it is.


Expert Comment

ID: 9811710
add this in the head section:

<STYLE type="text/css">
       BODY {
         background: white url("../img/subback.gif");
         background-repeat: repeat-x;

and delete the background image from your body tag.


Expert Comment

ID: 9811715
sorry ... crossposting


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fix Form size HTML 16 31
Popup write two lines 3 22
Triple line in an alert message 4 24
write html in textarea and record it into a database table 3 13
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question