Strange problem with image

by YongC
6 replies
  • WEB DESIGN
  • |
Hi today i have a strange problem on website

Please click this link : http://drakele.com/test/

and you see the image is horizontal but when you open the image link in new tab it's vertical

can anyone explain this ?

Thanks !
#image #problem #strange
  • Profile picture of the author Localnode
    The code on that page says
    Code:
    <img src="1.jpg" width="400">
    So if you replace the above with:
    Code:
    <img src="1.jpg">
    It will display full size, horizontally.
    {{ DiscussionBoard.errors[10642124].message }}
    • Profile picture of the author YongC
      Originally Posted by Localnode View Post

      The code on that page says
      Code:
      <img src="1.jpg" width="400">
      So if you replace the above with:
      Code:
      <img src="1.jpg">
      It will display full size, horizontally.

      I think you don't understand my question, i mean why image rotate when i don't using any script or css to make in turn
      {{ DiscussionBoard.errors[10642862].message }}
  • Profile picture of the author Nico Puegher
    The test page should have a code for that, probably your main theme. When I open the photo in a new tab, it displays the image .JPG and you can see it full size.

    For some reason, your theme displays the image with a custom size, not full size, you should always check your code even if you don't know much, you can always right click and inspect.

    What I see after clicking inspect element, this is what I see:

    element.style {
    }
    img[Attributes Style] {
    width: 400px;
    }
    Width 400, that's exactly your problem, that's a custom size. If you are using Wordpress when you add an image, there is an option where you can choose a custom size or full size, hope that can help you!
    {{ DiscussionBoard.errors[10643319].message }}
    • Originally Posted by Nico Puegher View Post

      The test page should have a code for that, probably your main theme. When I open the photo in a new tab, it displays the image .JPG and you can see it full size.

      For some reason, your theme displays the image with a custom size, not full size, you should always check your code even if you don't know much, you can always right click and inspect.

      What I see after clicking inspect element, this is what I see:



      Width 400, that's exactly your problem, that's a custom size. If you are using Wordpress when you add an image, there is an option where you can choose a custom size or full size, hope that can help you!
      I agree with Nico Puegher. He understood your problem and explain very clearly. You should check your width size. Thanks!
      {{ DiscussionBoard.errors[10763936].message }}
  • Profile picture of the author johnbrent606
    This image is change according to width which you are given in code...
    {{ DiscussionBoard.errors[10643451].message }}
  • {{ DiscussionBoard.errors[10770348].message }}

Trending Topics