Previous Message
Next Message

Background-image...

Sent by Scott Hamm on 19 October 2004 17:05


get rid of background-attachment:fixed; then it should stay relative to the
div itself.
I would also suggest reducing all these things to:

background: url(somefile) no-repeat center center;

or if you want fixed to the whole body then do:

background:url(somefile) no-repeat fixed center center;

Hope that helps.


-----Original Message-----
From: [EMAIL-REMOVED]
[EMAIL-REMOVED]]On Behalf Of Tudor
Sent: Monday, October 18, 2004 7:01 AM
To: [EMAIL-REMOVED]
Subject: [css-d] Background-image...


I have some problems in Mozilla Firefox with a background-image in a div. I
have some divs in a page and one of them has a class in which I define a
background-image... something like this:

myclass{
     background-attachment: fixed;
     background-image: url(some_file);
     background-position: center;
     background-repeat: no-repeat;
     color: #000000;
     font-family: "MS Sans Serif", Geneva, sans-serif;
     font-size: 14px;
     height: 480px;
     left: 0px;
     overflow: auto;
     position: relative;
     text-align: justify;
     top: 0px;
     width: 750px;
}

This div is inside other who is like a "container"... Where is my problem?!
my problem is that the background-image is not attached by the div but by
the body, the alignament of image is relative to the whole page, not
relative to my div...
Can somebody help me with this problem, or can somebody tell me what's going
on?!! 

Please heeeelp! :))

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: