473,287 Members | 1,904 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,287 software developers and data experts.

fixed background image w/css problem

I'm trying to create a fixed, no-repeat, centered background image using
an external css. Everything works great until I add

background-attachment: fixed

then it just doesn't show the image at all. I've tried it using the
"all in one"

{background: url(SGsmall.jpg) no-repeat center fixed}

and it just doesn't show the background image.

as soon as I remove the fixed part it works fine, but of course it is
not fixed. I've tried it in NS7 and IE6.

What gives?

Jul 23 '05 #1
2 4197
On Mon, 27 Sep 2004 20:29:56 -0400, Jonathan Carmichael
<jo****************@cox.net> declared in
comp.infosystems.www.authoring.html:
What gives?


As usual, a URL speaks a thousand words.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 23 '05 #2
On Mon, 27 Sep 2004 20:29:56 -0400, Jonathan Carmichael
<jo****************@cox.net> wrote:
I'm trying to create a fixed, no-repeat, centered background image using
an external css. Everything works great until I add

background-attachment: fixed

then it just doesn't show the image at all. I've tried it using the
"all in one"

{background: url(SGsmall.jpg) no-repeat center fixed}

and it just doesn't show the background image.

as soon as I remove the fixed part it works fine, but of course it is
not fixed. I've tried it in NS7 and IE6.

What gives?


Are you aware that 'fixed' fixes the background relative to the
viewport an dnot relative to the element you've set the style on? Thus
your background image will be fixed at the top center of the viewport
and will not tile. If you have other elements at the top of your page
with backgounds then they are likely to be covering the background
image.

Post a URL.

Steve

Jul 23 '05 #3

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

Similar topics

1
by: Vitabiz Productions Ltd | last post by:
Hello, I'm currently experiencing some problems with the following code: <TABLE border=1 cellpadding=0 cellspacing=0> <TR> <TD BACKGROUND="images/menu.gif" WIDTH="170px" HEIGHT="372px"...
2
by: hq105862 | last post by:
Hi, Is it possible to simulate frames behaviour with CSS? Currently, I've used CSS to create the visual look of my old framed site. For this I've used styles that place the images at absolute...
1
by: Robert Blasius | last post by:
Hi there. sorry, for the first posting. I pressed the wrong button... Again. I`m trying to realize an css for the body-tag which contains an fixed image in the upperleft and instead of an...
1
by: Andrew Poulos | last post by:
I have some HTML that looks a bit like this: <div id="panel"> <div> <p>blah</p> </div> </div> The relevant CSS looks like this:
6
by: Sandman | last post by:
I'm having some problem here... I have a javascript I've downloaded that goes through all PNG files and enables the transparency channel in them for IE5.5+ by converting them to SPAN layers with...
40
by: Mark | last post by:
Hello i like to make the following lay out: - 3 columns - center column = fixed width - left and right columns are not fixed and must take all the available space there is left. - left...
7
by: Paul Wake | last post by:
I'm missing something regarding positioning background images. It's probably obvious, and I hope someone here will note it for me. I'm trying to do something like the complex spiral thing, only...
3
shane3341436
by: shane3341436 | last post by:
Hello, I used background-attachment=fixed for a div tag for fixing the background image. It works fine under mozilla firefox. But using IE the attachment doesn't seems to be fixed. In fact the...
0
by: RubbedLung | last post by:
http://www.hometeamproperties.net/Forms/PVA/LPV.htm As you can see its a valid page but now the bottom right rounded corner is gone, and there are entire blocks of color missing from the interior...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.