Fullscreen Image background
- Started
- Last post
- 7 Responses
- Stugoo
Hey all,Jsut running out the door but putting this out for now.
Anyone have a fullscreen background image solution that will maintain the aspect ratio of the image regardless of width/height of browser?
has to scale, work with scrollbars and most of all maintain the aspect ratio.
- hotroddy0
flash or js?
- foobaz0
I created one you can try...
- Should mention it's a jQuery solution.foobaz
- Whoa, someone in my office just e-mailed link to your page about 20 minutes ago.soundsinsilence
- just sent this to the coder sitting next to me, nice.set
- utopian0
This code is worth swiping!
http://ateliersantaclara.de
- Stugoo0
by the way,
i ended up using
http://css-tricks.com/perfect-fu…
thanks tgqt
- vitamins0
_root.scale.bg = proportion - 2.4;
- MSTRPLN0
Foobaz > For some reason in safari the FS background image always comes out resized to the height of the browser window and not the width, leaving a gap on the right side and only resizes fully when the browser window is manually resized or refreshed.
any ideas on this?
- PS really great work you've done!MSTRPLN
- Works fine in Safari 4 on 10.4duckofrubber
- MSTRPLN - I sent you an email...let me know if that works for you.foobaz