dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: How Do I Rotate An Image Or A Div?

  1. #1
    Join Date
    Dec 2003
    Location
    Hertfordshire, England
    Posts
    18

    Question How Do I Rotate An Image Or A Div?

    I just wanted to know if it was possible to rotate an image or a div to an angle in the HTML?

  2. #2
    Join Date
    Aug 2003
    Posts
    256
    sorry, not using html alone (well i've never seen anyone say anything but that). there should be a way using javascript.. maybe..

  3. #3
    Join Date
    Jul 2003
    Location
    Boston Area, Massachusetts
    Posts
    3,489
    Your answer most likely lies in SVG.

  4. #4
    Join Date
    Oct 2004
    Posts
    2

    Talking so easy~~man~ take your time~~

    haha (^0^)=b

    use javascript and matrix filter.

    you can rotate or resize div tag~~~~ hahahahaha~

    my email: empaly@empal.com

    from south-korea..

    oooo~pilsung korea~dum!dum!
    oooo~pilsung korea~dum!dum!
    oooo~pilsung korea~e~o~e~o~e~
    Last edited by lizen; 10-14-2004 at 01:25 PM.

  5. #5
    Join Date
    Oct 2004
    Posts
    2
    test

  6. #6
    Join Date
    Aug 2003
    Posts
    256
    Test successful.

  7. #7
    Join Date
    Mar 2011
    Posts
    1,159
    Check out CSS3's transition:rotate() property. You'll run into the common problem of no support in Internet Explorer below version 9, but it works. As fredmv mentioned, SVG can also work some magic in this regard.

  8. #8
    Join Date
    Dec 2012
    Posts
    2
    One way to do so is by using "div" tags around the image code in your HTML file. You can use div tags to rotate the image to any angle, with a pivot point at the image center.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles