473,396 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

bgimage wont repeat

hi all

I have an image that I want to repeat across the very top of my page (it's a
bar with snow melting)

so

..topimage
{
background-image: url(bar.gif);
background-repeat: repeat-x;
left: 0px;
top: 0px;
position: absolute;
}

but no matter what I do, it wont repeat. I only get one of them.

bound to be something obvious but my CSS knowledge ranks up there with my
knowledge of whatever is under my bed!!

thanks for any help
Nov 28 '05 #1
2 1261
Alistair <ne**@alistairbpants.co.uk> wrote:
hi all
How do you do?
I have an image that I want to repeat across the very top of my page
(it's a
bar with snow melting)

so

.topimage
{
background-image: url(bar.gif);
background-repeat: repeat-x;
left: 0px;
top: 0px;
position: absolute;
}

but no matter what I do, it wont repeat. I only get one of them.


What type of element is .topimage?
Is there anything that is limiting its width?

Have you tried specifying {... width:100%;}

--
William Tasso
Nov 28 '05 #2
>.topimage
{
background-image: url(bar.gif);
background-repeat: repeat-x;
left: 0px;
top: 0px;
position: absolute;
}


position:absolute takes the element out of the normal flow, which will
affect it's width rendering. If it is not necessary, remove that line.
Otherwise, specify a width, as William suggested.

Nov 28 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ali | last post by:
I have the following web page with a script in it. <html> <head> <title>Make Your Own Objects test</title> <script>
1
by: Badass Scotsman | last post by:
Hello, This code is supposed to generate a random string each run, however I have had it live on a few sites, and it seems to create repeat strings all over the place. ...
3
by: Jana | last post by:
Good morning, Access gurus! I'm having a brain fart and can't seem to wrap my head around the logic for this problem, so I'm hoping someone out there can help me out. Here's my situation: I...
1
by: roveagh1 | last post by:
Hi I've been using the 2 year old link below to repeat values from previous record field into current corresponding field. It's worked fine for text but the last piece of advice was to use the same...
1
by: nicky77 | last post by:
hi there, i'm pretty inexperienced with CSS, so apologies for the shoddy coding. i'm trying to set a 3 column layout using different background images for each column. however, i have whitespace at...
2
XedinUnknown
by: XedinUnknown | last post by:
Hi! I am new to this forum, but not new to web design and programming. Nevertheless, I have never tried to use PNG so extensively in my pages. here's the problem. First, I have found that the...
4
by: shapper | last post by:
Hello, I am trying to give a background to a Div repeating it on the y direction. Please, notice the alternate of colors: http://www.27lamps.com/Beta/Background/Background.html Does anyone...
0
by: shapper | last post by:
On Sep 25, 1:56 am, shapper <mdmo...@gmail.comwrote: Sherm, Thank you to point that to me. I forgot to hide the gradient on Photoshop and I was all this time going around my CSS. Thank you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.