SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,223
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    from horizental to vertical

    http://dot.kr/test/ship.jpg


    I have an image like the above.

    I like to show it to turn from horizental to vertial, so that the ship can be seen normally.



    The following would-be code doesn't work correctly, but it will show what I want.

    Code:
    would-be code
    
    <img src='ship.jpg' style='turn_from_horizental_to_vertical'>
    How can I make the ship to be on the bottom instead of to be on the right side?

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS cannot do this.... not even CSS3. I would suggest looking for a JS solution.

    Or you could rotate the image yourself!
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  3. #3
    SitePoint Enthusiast ScottyDM's Avatar
    Join Date
    Dec 2007
    Location
    Colorado Springs, Colorado, USA
    Posts
    67
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea. Imaging editing software will fix you right up.

    BTW, that's a huge image and it downloads slowly for me. Do you need to have it so large? If not scale it to your required size in your image editing software before you upload it to your site.

    Scotty
    "I'm obnoxious and disliked, you know that, sir."
    John Adams, 1776 the Musical

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HTML is a markup language, not a programming language. There's no way you can do this with HTML.
    Birnam wood is come to Dunsinane


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
  •