Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John Churchley 272 posts 1258 karma points c-trib
    Mar 19, 2015 @ 17:31
    John Churchley
    0

    Slimmage images not displaying

    Images aren't displaying however everything seems to be right. SlimResponse & Slimmage included

    Inspecting the markup it appears to be working....however images aren't appearing on the page.

    <noscript data-slimmage="true" data-img-src="/media/1004/triple-header-res.jpg?width=200&mode=crop&slimmage=true"><img src="/media/1004/triple-header-res.jpg?width=200&mode=crop&slimmage=true"></noscript>

    CSS 

    1. height179px;
    2. width100%;

    Anyone with any ideas?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 19, 2015 @ 19:07
    Jan Skovgaard
    0

    Hi John

    Are you using the slimsy package or are you doing a custom implementation of the slimmage script?

    What does your full code look like? Full CSS, HTML and JavaScript please :)

    /Jan

  • John Churchley 272 posts 1258 karma points c-trib
    Mar 20, 2015 @ 11:26
    John Churchley
    101

    Hi Jan,

    Realised my mistake I was trying to get the images to only appear on large devices therefore I set the width as 0 and within the media query width was 100% which doesn' work.

    Solution: Changing them both to the max-width property sorted it out.

    Thank you for replying.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 20, 2015 @ 11:41
    Jan Skovgaard
    1

    Hi John

    And thank you for sharing what went wrong - Others might benefit from it someday :) It might be an idea to mark you own last post as the solution so it's easy for others to jump straight to it.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft