Solved

background image repeats on scrolling page...

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

http://www.new-hire.com/newhire/maybe.asp

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

Thanks!
Dark Magneto
0
Comment
Question by:darkmagneto
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
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">
body
{
background-image: url("../img/subback.gif");
background-repeat: repeat-x
}
</style>

That will have the background image repeat horizontally & that it is.  http://www.w3schools.com/css/css_background.asp

-Corey
0
 
LVL 8

Expert Comment

by:xabi
ID: 9811710
add this in the head section:


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


and delete the background image from your body tag.

xabi
0
 
LVL 8

Expert Comment

by:xabi
ID: 9811715
sorry ... crossposting

xabi
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
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 embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now