css. conspiracy style sheets
- Started
- Last post
- 13 Responses
- rabattski
newbie question: can i have a div which just contains an image which is bigger than the browser window without getting scrollbars? basically a fixed background but thing is i already have a fixed background and i don't want it to tile. searched pvn. but i constantly get mysql / php errors while searching. any help, as usual, is appreciated.
- gabriel_pc0
just set the div containing the image to have overflow: hidden
- rabattski0
thanks! never heard of that option. but i'm going mental right now. according to various online manuals it should work in ie/mac but it doesn't. no idea why. i'll figure it out someday. again thanks. any other options?
- gabriel_pc0
do you have a code sample online I could look at? it'll make it easier to figure out what's going on.
- rabattski0
thanks but unfortunately i can't show it yet. it's for a client and during the development it's in a password protected environment.
- tomkat0
you can have a background not tiling..
something like (not exact):
body{
background: no-repeat;
}look it up..
- tomkat0
body{
background: url(stars.gif) no-repeat
}more like that..
- rabattski0
cheers tomkat. i've read that. thing is i'm already using a background image (which has to tile) in the body tag. on top of that i want another image (the one that isn't supposed to cause scrollbars) and on top of that the actual content. so i can't really use that. thanks again though.
- Nypan840
If you could tell us what you are actually doing it would help. Do you se the background at the same time as the div layer? What does the div do; what’s it’s function?
- angryspongebath0
I've just got three words about IE for Mac, and how it parses CSS - and I'll borrow a line from Ben Belvanz on this one...
"POOPY! POOPY! POOPY!"
- rabattski0
:) cheers anyways i'll try to figure it out somehow.
- strabley0
the proper(!) CSS code would be
{
background-image:yourImage;
background-attachment: fixed;}
- strabley0
for repeating images the se are your lines
background-repeat: repeat-x;
only tile left and righ
background-repeat: repeat-y;
only tile top and bottom
background-repeat:no-repeat;
display only one image, which i believe is what you are trying to do.
- rabattski0
tried that as well but it doesn't give me the result as well. it prolly is the poopyness of mac / ie 5.x css handling (just read that overflow isn't supported by ie 5.x browsers). however i figured out a crude workaround that gives me about 90% what i want and i keep it like that for now. when it's finished and online i'll post the url so you can see and maybe give me pointers to do it proper. anyways, thanks for all the info.