Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can i tilt an image easily using HTML or CSS?

Tags:

html

css

some designs on the Apple's user's webpage show a photo that is tilted slightly, like at a 5 or 10 degree angle. while this is no big deal, it does make the webpage totally different from "all the rest".

is it true that currently using HTML or CSS, this can't be done yet?

like the big photo in the middle:

alt text http://img7.imageshack.us/img7/383/phototilt.png

(the program lets you choose photos and then create the page (html and jpg) dynamically for you)

like image 965
Michelle Lee Avatar asked Nov 28 '22 05:11

Michelle Lee


1 Answers

CCS 3 will offer this possibility, but it's still not cross-browser and you cannot do it with traditional HTML + CSS... yet.

Websites having a tilted image do it by rotating it in, say, Photoshop and making its background transparent. That's the whole trick there's to it.

Tip: save that picture to your HD and see by yourself. That's probably just an squared image with transparent background, or maybe it has the current background cut nicely to fit there.

like image 101
Seb Avatar answered Dec 18 '22 23:12

Seb