Connecting Tech Pros Worldwide Help | Site Map

Image rotation

  #1  
Old May 28th, 2009, 09:12 AM
Newbie
 
Join Date: May 2009
Posts: 1
Hi,

how to make complete rotation any image in html/css

Expand|Select|Wrap|Line Numbers
  1.  
  2.   <img src=C:\Users\Desktop\DSC00583.JPG" height=300 widht=200 style="image-rotation:90deg;">
  3.  
  4.  
pls, reply me

Last edited by Markus; May 28th, 2009 at 12:31 PM. Reason: Fixed [code] tags.
  #2  
Old May 28th, 2009, 09:45 AM
Ciary's Avatar
Expert
 
Join Date: Apr 2009
Location: The outer ring of hell
Posts: 238

re: Image rotation


there is no such thing as image rotation in CSS that i'm aware of or at least not yet.

a way around this is the use of php-image conversion (GD or something else)

if you're doing to use it, take a look at this
  #3  
Old May 28th, 2009, 11:57 AM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,520

re: Image rotation


You can use css3 transforms in gecko and webkit browsers beginning with Firefox 3.5 coming in June. I don't know about Opera. Do not count on IE for these advanced features for quite a number of years.

Transforms in Gecko
Transforms in Webkit
  #4  
Old May 29th, 2009, 03:19 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,517
Provided Answers: 12

re: Image rotation


If you can't wait that long, you can use the <canvas> tag with JavaScript. IE's not too clever, i.e. doesn't support it, but a project exists which adds support.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image rotation doesn't take effect till... kimiraikkonen answers 3 December 24th, 2007 09:55 PM
Mouseover and random image rotation Ohann answers 9 May 30th, 2007 12:00 PM
Image rotation and dimensions John answers 1 July 23rd, 2005 12:35 PM
Image rotation Jez answers 1 July 17th, 2005 02:13 AM