SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist venkat6134's Avatar
    Join Date
    Jul 2010
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is wrong with this code?

    HTML Code:
    <style type="text/css">
    	img.rotated180 {
        /* CSS3 then proprietary code */
        rotation: 180deg;
    	/* for firefox, safari, chrome, etc. */
        -webkit-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
    	/* for ie */
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
    }
    </style>
    <img src='images/22.gif' class='rotated180'>
    When i use this in a separate page, it is showing correctly in both IE and Mozilla.
    but when i used this code in another page to rotate an image, it is not working in IE, in Mozilla it is fine.

    Why?

    Thank you for your guidance.

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What makes you think this is related to PHP?
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    works for me:

    try it here
    FreePHPtest.com - Online PHP testing


Bookmarks

Posting Permissions

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