Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

justcorners with background image 1

Status
Not open for further replies.

ClulessChris

IS-IT--Management
Jan 27, 2003
890
GB
I've added the method from to display rounded corners on the images in my site.

this depends on the being given certain class.
Would it be possible to apply this method to a background image set via CSS?

Never knock on Death's door: ring the bell and run away! Death really hates that!
 
The code supplied from that site is drawing the image with a matching classname onto a canvas object (this is not supported by IE, so another approach is used for that browser) and then setting some clip regions to do the corners. It then replaces the original image on the page with a canvas element.

Out of the box, the code won't handle background images. You could modify the code to use the background image instead.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top