CSS - Aggiungere una cornice alle immagini con le PNG e CSS

Discussioni sui principali linguaggi di programmazione; PHP, ASP, C++ , Perl, Assembler ...

CSS - Aggiungere una cornice alle immagini con le PNG e CSS

Postby Frank on Sat Mar 29, 2008 1:25 am

Idea semplice ma allo stesso tempo efficace presentata da Nathan Smith in PNG overlay.
Si sfrutta una PNG trasparente che fa da cornice alle immagini.
Grazie ai posizionamenti assoluti CSS la PNG semitrasparente viene disposta sopra l'immagine.

Dal post dell'autore :

"Have you ever run into the problem of creating a site with pictures given by the client, only to find later after they update their photography the original look and feel is not retained? For instance, you might add a drop-shadow, rounded corners (maybe both) or some other graphical effects applied to the images. This is all well and good, but what about the webmaster or journalist who follows after you – Will he or she be able to keep the look consistent? ..."
(continua)

Difetti della tecnica :
IE fino alla versione 6 non supporta le PNG trasparenti, ma si può rimediare utilizzando la soluzione proprietaria filter per estendere la compatibilità a IE5.5 e IE6.
User avatar
Frank
Developer
Developer
 
Posts: 11
Joined: Tue Mar 11, 2008 4:56 am

google adsense
Google
 

Return to Programmazione

Who is online

Users browsing this forum: No registered users and 0 guests

cron