PDA

View Full Version : background IMG problem


scratched
03-15-2006, 01:08 AM
I'm designing this web page to teach myself CSS. I've gotten everything I want to work with the exception of the background image for the body of the page.

I have a background that I have set to repeat-y but it isn't repeating itself. It isn't displaying at all, and from the looks of it, the background color isn't displaying either. If you scroll down you can see this by looking on the right side.

What do I need to do to make the background work?

http://www.personal.psu.edu/dph5010/punish/

http://www.personal.psu.edu/dph5010/punish/main2.css

mark87
03-15-2006, 01:13 AM
You set repeat-x - it is repeating across, and I can see the black background fine... it's stayed fixed because you stated it should be fixed. And you say it's not even but half of its the header.jpg and half of it's the page background (BG-last2.jpg)...

scratched
03-15-2006, 01:18 AM
I had repeat-x for the background of the whole page. That isn't the part I can't get to work.

I guess I wasn't very specific. In IE the background can be seen, in FF and Opera it doesn't show up.

The background image I can't get to display is the one that would go below the header. Here is the code I'm using for it right now...

#body {
margin-left: 17px
width: 769px;
background: #000 url(body.gif) repeat-y;
}

I can't get the body.gif to repeat. It doesn't seem to be displaying itself at all, unless it is hidden under the header.

mark87
03-15-2006, 04:47 PM
FF and IE look the same to me.