Solved

background image repeats on scrolling page...

Posted on 2003-11-24
3
272 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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

18 Experts available now in Live!

Get 1:1 Help Now