Lay Theme Forum

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

    Image colors vs. background color

    Bug Reports
    2
    4
    197
    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.
    • edgrbnz
      edgrbnz last edited by

      Hi there @mariusjopen and @arminunruh

      I'm battling a weird problem which makes total sense on one hand and somehow doesn’t on the other:

      I'm using a background-color which is slightly off-black and match the background color of almost all my images to make them appear free floating. All images are saved as sRGB, 8bit files to make them as compatible as possible.
      The problem is that on certain monitors / browsers / system it’s possible to see the background color of the images separate to the rendered background color of the whole site which is not intended.

      I kinda was able to fix this with a small background image in the exakt color for the whole site, but am wondering if there is any way to get this working in a more elegant and efficient way?

      ✦ ✦ ✦

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

        Dear @edgrbnz
        this is because different browsers interpret colours differently.

        You can make a JPG with the special black and use this image as a background instead of defining a colour in LayTheme.

        Hope that helps!

        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • edgrbnz
          edgrbnz last edited by

          @mariusjopen

          Yeah,… that’s what I thought.
          The Jpeg workaround works fine. I just was wondering if there is any way to force browsers to interpret a Hex-Code with a simulated color profile (or something like that).

          Thanks!

          ✦ ✦ ✦

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

            Dear @edgrbnz
            I would not count on that.
            You could make the JPG 1px by 1px though to get the smallest size possible.

            Best!

            Marius

            www.mariusjopen.world

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

            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

            C

            Recent Topics

            • C

              image carousel bugging out

            • N

              help needed with cleaning up and optimising lay theme portfolio website

            • R

              Html5 Video Player issue

            laytheme.com