PDA

View Full Version : CSS, revolve an background image for hover



prowodnik
Oct 17th, 2008, 02:24 AM
Nice time,

can't fine some good information about revolving of images in CSS.
will use this tricky for my first page about DSL (http://prowodnik.de/internet-anbieter/1und1.html)

example code:

a[href^="mailto:"] (line 1235)
{
padding-top: 5px;
padding-right: 20px;
padding-bottom: 5px;
padding-left: 0pt;
background-color: transparent;
background-image: url(/images/icons/icon_mailto.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-position: right center;
}

how could I turn this image "icon_mailto" around 15 ?

best thanks.

FWDrew
Oct 17th, 2008, 03:53 AM
Hi there,

As far as I know, CSS alone cannot rotate an image, you will need to look into using javascript or better yet just rotate the image beforehand in photoshop.

Best regards,

Drew

prowodnik
Oct 17th, 2008, 12:36 PM
somewhere I see a tutorial only CSS, but it was for background. It was fine to make an Effect of a lot of paper in background. Sadly I cann't find it again. So I thought, maybe it were possible use it for my images too.