Before you ask please READ THIS

In Albums, add an image into Photo Description field

edited October 2013 in Hypershot Posts: 19
Hi!
I would like to have an image inside the Photo Description field (the site is under construction but you can have a look at www.devargas.com.es/download/album.jpg). I've done it with 5 separeted images so on different screen size they are cascading so this make the trick. But what I would like to have is one single image (made of those five), scaling at once depending on screen size. I've been trying for a while, but if I insert a single 940px image in the Photo Description field, it doesn't scale. Any clue about it?

Thank you in advance,
Anne-Sophie

Comments

  • AirAir
    Posts: 10,970
    Hello

    Don't use style like fixed width or height for that image but rather use something like <img src="my-image.jpg" style="max-width: 940px; height: auto;" alt="" />

    With regards.
  • Hi!

    Thanks for your quick answer.

    Yes, no fixed value is the first thing I've tried... Also with 100%, or put it into a div with class... Nothing. The strange thing is, aven if I set a fixed width to 200px (just to see what can affect the image) it doesn't shrink, it just stay 940px width, no matter what! Totally confusing... :S
  • AirAir
    Posts: 10,970
    Probably some styles or script for slider is overwriting styles for your images in description. Check it with firebug or send me link where I could test it.

    With regards.
  • Hello, I had a look with firebug, but I don't know what I have to look for exactly :S
    I've just sent you an email via the "Send Air a Message" in your profile. Thank you in advance...
  • AirAir
    Posts: 10,970
    Thanks for access data.
    asdevargas said: But what I would like to have is one single image (made of those five), scaling at once depending on screen size.
    Now there are 5 images so I can't help you debug why it doesn't work. Please insert one and come back to me. If I am wrong, then send me link via private message, to site where can I see it.

    With regards.
  • Sorry! Stupid me... I've just created a new album for testing purpose. I'm sending you the link vía email. Regards.
  • AirAir
    Posts: 10,970
    This styles will work better(you can add them inline or with selector as below):

    #slide-text .descpription img{
    display: block;
    height: auto;
    max-width: 940px;
    width: 100%;
    }
    With regards.
  • It works perfect!!! :D Thank you so much!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!