We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Can you give a link to a page with such an oversized image?
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org
      • 36488
      • 37 Posts
      www.intelligentss.com the images are within the scrolling box on the right hand side (Some images are fine but others are not)
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Hm. The "nanoyo.png" image is actually 180x34, and the NASA.gif is 59x50.

        http://www.intelligentss.com/assets/intelligentss.com/images/logos/Nanoyo.png
        http://www.intelligentss.com/assets/intelligentss.com/images/company/NASA.gif

        How are you creating this list?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 36488
          • 37 Posts
          How do you mean? I have the original images on my PC - I change the size using paint or MS picture editor then i upload the images to the Modx Browser and then create the html code/link to the uploaded image within the relevant chunk file on the elements section of modx such as below:

          <a href="http://www.nanoyo.com/"><img src="assets/intelligentss.com/images/logos/Nanoyo.png" alt="Nanoyo logo" /></a>
            • 36488
            • 37 Posts
            Thats a bit weird - i copied and pasted the code above but it is different that what i have on screen the following seems to be additional code:

            target="_blank" rel="nofollow">http://www.nanoyo.com/"><img</a>
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              This is what the javascript is doing when it creates the scrolling box:

              <div id="logos" style="position: relative; overflow: hidden;">
              <a href="http://www.csigrout.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 180px; height: 153px;">
              <a href="http://www.quillfalcon.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 169px; height: 153px;">
              <a href="http://www.nationalbc.co/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 180px; height: 153px;">
              <a href="http://www.eurograffiti.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 180px; height: 153px;">
              <a href="http://www.clean-like-new.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 180px; height: 153px;">
              <a href="http://www.gumpak.co.uk/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 173px; height: 153px;">
              <a href="http://www.nanolandglobal.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 193px; height: 153px;">
              <a href="http://www.nanoyo.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 794px; height: 153px;">
              <a href="http://www.esseurope.com/" style="position: absolute; top: 0px; left: 0px; display: block; z-index: 11; opacity: 1; width: 177px; height: 153px;">
              <img alt="ESS logo" src="assets/intelligentss.com/images/company/NASA.gif">
              </a>
              <a href="http://www.intelligentss.com/" style="position: absolute; top: -153px; left: 0px; display: none; z-index: 10; opacity: 1; width: 490px; height: 153px;">
              </div>

              As you can see, it's definitely resizing the images. So the problem is with the particular Javascript cycle plugin you are using.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 36488
                • 37 Posts
                Is it a major job to correct the plugin?
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I have no idea. I'm not at all familiar with that particular JQuery plugin. http://jquery.malsup.com/cycle/
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 5143
                    • 116 Posts
                    I don't think it's the plugin - I noticed on line 79 of common.css you've set a height property for the images, but not a maximum width - so the nanoyo image is being stretched until it reaches 150px tall.

                    You need to configure your stylesheets.

                    Edit: I've used cycle extensively, it's a great plugin, no need to reconfigure that at all.
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Yes, that'll be the problem. I did a bit of Google research, and it's highly recommended that the images be given height and width attributes in the img tags, or if possible be given standard height and width in the CSS file. In your case, using the CSS isn't a good idea, since your images vary so wildly in size.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org