Home

Design News:

Dynamic CSS Backgrounds

An interesting use of CSS to create backgrounds that animate whenever the browser is resized.

Comments (5)

this was shown before and it dont work anyway in most browsers
-makes a good excuse to your client when the project is late though!

#1: philc on 06/04 at 12:12 PM

What browsers have you found that this doesn’t work on? It works on IE, Safari, Firefox, Chrome and Opera. It’s really a very simple piece of CSS, and there’s not that much that can break down in terms of cross browser compatibility. If you’ve had problems in other browsers then please let me know, and then I can update the tutorial.

#2: fogofeternity on 06/05 at 03:16 PM

Lynx, Netwave, Wii, PSP,Iphone, blackberry :)
*mobile, OperaMini
seriously, an ‘effect’ that relies on you resizing the window=fail
90% of effects fail anyway, but this one especially.

dont take it personally,especially as you never even came up with it originally or anything

#3: philc on 06/05 at 04:31 PM

Ah, I got you. And yeah, definitely it’s a pretty pointless effect on a mobile. Even on non-mobile I agree, it’s an effect that’s very rarely going to come into use, because people don’t generally resize their window. More really a demonstration that it’s worth thinking outside the box with CSS, because you can do a reasonable amount before you revert to Javascript, Flash etc for visual impact.

#4: fogofeternity on 06/05 at 06:41 PM

even though the effect demonstrated is generally forgiving of exact dimensions and positioning, it’s best to have some sort of CSS reset to hard set some browser defaults like padding,etc (which vary amongst browsers)

#5: philc on 06/05 at 07:45 PM
Commenting is not available in this weblog entry.

News Tools &
Other Resources

CSS Compressor

Use this tool to compress your CSS code, with three levels of compression to choose from!

CSS AutoPrefixer

Intelligently add CSS vendor prefixes to your CSS code. Just paste and copy!

Image to Color Palette Generator

Get the primary colors of any image in hex format with this online tool!

Image Optimizer

Use this tool to easily optimize regular gifs, animated gifs, jpgs, and pngs, so they load as fast as possible.

Button Maker

Use this tool to easily create those popular 80x15 micro buttons you see on web sites everywhere.

FavIcon Generator

Generate a favicon using any regular image with this tool. A favicon is a small, 16x16 image that is shown inside the browser's location bar and bookmark menu when your site is viewed.

Ribbon Rules Generator

Create alternating colored horizontal rules quickly with this new Web 2.0 tool.

.htaccess Banning Generator

Generate the necessary .htaccess code to ban visitors based on their IP address, referrals, or disable hotlinking on the desired file types on your server, such as images.

.htaccess Password Generator

Generate all the necessary codes needed to password protect a directory or selects files within it on your site using .htaccess.



Partners & ResourcesOur
Partners


CSS Forums News

Dynamic Drive forums | Register

The Latest Comments

All images and content copyright © 2017 CSS Drive. Contact Info | Back to Top
Affiliate Discloser: We receive a commission from purchases through some links on this site