is that ok for use within the body tag?
Main Topics
Browse All TopicsHi,
I am trying to stop my horizontally tiliing background slip from also tiling vertically. I have a simple gradient slip image which tiles across, but if the page content goes longer than the height of the image, it then starts tiling beneath - surely this shouldn't happen??. Perhaps my css is wrong?
I thought the following would be ok:
Many thanks,
Tony
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sometimes when creating images (slicing) it may pickup other images or dimensions may be altered.
I think qwerty may have the trick.
The background red may be overshadowing the image. So the image is red and the background is red....definitely there may be a mix up.
The image size is 1219px.....Long.
MD
sounds as though I need to swop - have body as solid and overlay div with gradient. But the whole thing has me a bit stumped - isn't background-repeat: repeat-x supposed to tile across just once? I thought that was the whole point. And why would taking background-color out of the tag remedy the 'inconsistancy'?
See repeat-x is tiling horizontally only
But since you gave red color,which is similar to the color of the image. It was showing as if it is repeating vertically, which was not happening actually.
if you want to give some color in the background color, then giving a color other than red would solve your purpose i suppose.
This is crazy - it looks as though the whole question has been an error on my part. I changed the body background-color to a new red and hey presto - no problem with "tiling". I thought it was tiling because the background color previously chosen was too close to the TOP of the bg-image gradient color. My silly error here, I am sorry! kids are both sick, not enough sleep and now I am suffering too...
I need to go lie down, but I can't - must plough on.
Thanks for your time and helping me point out my own stupidity!
Tony
Business Accounts
Answer for Membership
by: qwertyPosted on 2009-02-26 at 23:17:08ID: 23753374
if possible, mention the height of the image in pixels. so it wont go beyond that.