Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    IMG max-width: 100%

    General Discussion
    2
    2
    379
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      carpetfiber101 last edited by

      Hi Armin,
      How can I limit the max-width of an image to 100%?

      For example, let's say I have an image that is 1000px. If I make that image to fit within all columns in gridder, it gets stretched out to >1000px when the view port is large. Is there anyway to limit image size to 100% width?

      I've tried using Chrome's inspector tool and writing CSS, but it doesn't seem to work.

      Any help is much appreciated! Thank you.

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        Hey, maybe a good solution for you is to use the max-width option in "lay options" -> "Max width of content"
        Does that help?
        I'm afraid there is no other option for something like that.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Try this to fix issues before you post:

        Use the Search Feature. Maybe there is already a solution to your issue.

        1. Update Lay Theme and all Lay Theme Addons
        2. Disable all Plugins
        3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
        4. Now see if your problem solved itself
        5. Go here, see if your problem is listed here:
        Troubleshooting

        When you post:
        1. Post a link to where the problem is
        2. If the problem is difficult to explain, post screenshots / link to a video to explain it

        Thanks!

        Online Users

        M
        M
        C

        Recent Topics

        • F

          X-button (close) on category page

        • T

          display resolution of thumbnails in image-hover

        • G

          Designer Websites for free Lay Theme.

        • A

          Lightbox on carousel

        laytheme.com