Jump to content

Archived

This topic is now archived and is closed to further replies.

Lee Davies

Resizing a backgroud image

Recommended Posts

Nope. Not in CSS2, at least. CSS3 might offer that feature, but I doubt it. Resizing images is done either by the image tag or an image editing program, not CSS.

Share this post


Link to post
Share on other sites
Is there any other way to resize a background image? PHP?

Basically I have an upload script where people upload their images, and it gets previewed in a background image, with an <img> tag overlaying another image.

Now, people are uploading stupidily high file widths/heights and basically they can preview their image properly in a 300x200 cell...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.