Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Background color for inner frame only

Background color for inner frame only

Scheduled Pinned Locked Moved General Discussion
10 Posts 3 Posters 212 Views
  • 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.
  • J Offline
    J Offline
    JivaG
    wrote on last edited by
    #1

    Hi,
    I'm currently working on a project for a client and I've come across a rather simple, but somehow hard to solve problem (at least for me):
    Is it possible to give a background color to the inner frame only? In this case the light grey. When I use "set background color" or "set row background color", the spacing is always ignored and the background color is applied to the whole width. I've also tried giving #grid, .grid-inner etc a background color in custom CSS, also in combination with background-clip, but that didn't work either. Did I miss something?
    The only solution I could think of was to not use the theme's "set frame option" and give each row a left/right margin and background color. But to be honest, since this is for a client who wants to be able to add/change things with minimal effort, I hope there is a better, more basic solution.

    It would be great if you could help me. Thanks a lot!

    Best regards,
    J

    Some pictures to better understand what I mean:

    The Design:
    goal.jpg

    Via "Set Background Color" / "Set Row Background Color"
    Also, the background of the text block on the left should fill the entire height of the row. Is there a possibility to adjust the height of a text element to the height of a project thumbnail in the same row?:
    via_set_background_color_small.jpg

    1 Reply Last reply
    0
    • F Offline
      F Offline
      felix_rabe
      wrote on last edited by
      #2

      @JivaG can you post a link to the site?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JivaG
        wrote on last edited by
        #3

        Sure:

        http://wp.ilf-magdeburg.de/start-2/
        (this is start page dummy for testing)

        1 Reply Last reply
        0
        • F Offline
          F Offline
          felix_rabe
          wrote on last edited by felix_rabe
          #4

          @JivaG thank you. let’s break this down. I got rid of the background color and the margin on the sides of your rows and applied the following:

          .grid-inner{
              background-color: grey;
              margin-left: 12%;
              margin-right: 12%;
          }
          

          I don't know how you did the layout in the gridder, but maybe you can take it from here.

          Bildschirmfoto 2022-08-18 um 21.46.36.png

          1 Reply Last reply
          1
          • J Offline
            J Offline
            JivaG
            wrote on last edited by
            #5

            Hi felix_rabe,

            thanks a lot!

            For now it seems to be the only way. The box on the right ("Ansprechpartner*in ...") has a fixed position. Unfortunately applying a margin to .grid_inner messes with the elements scaling and positioning. Anyway, that's fixable. ;-)

            Thanks again for your time and effort!

            Maybe in a future lay theme update there will be a native option. ^^

            1 Reply Last reply
            0
            • arminunruhA Offline
              arminunruhA Offline
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              thanks so much for your help felix!

              J 1 Reply Last reply
              0
              • arminunruhA arminunruh

                thanks so much for your help felix!

                J Offline
                J Offline
                JivaG
                wrote on last edited by
                #7

                @arminunruh
                After the latest update to version 4.9.9 the above solution isn't working anymore. After just doing fine, right before ending this project ...

                It seems that custom css even when using !important has no effect on .grid-inner. At least when it comes to margin and background-color. Is there any solution to this?

                Thanks a lot!

                1 Reply Last reply
                0
                • arminunruhA Offline
                  arminunruhA Offline
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #8

                  .grid-inner{
                  display:block!important;
                  }

                  does it work like this

                  J 1 Reply Last reply
                  0
                  • arminunruhA arminunruh

                    .grid-inner{
                    display:block!important;
                    }

                    does it work like this

                    J Offline
                    J Offline
                    JivaG
                    wrote on last edited by
                    #9

                    Dear Armin,
                    it works! The funny thing is, I tried it yesterday with "display: block", but unfortunately without "importance". Sorry for bothering you with this. Anyway, thanks a lot for your super fast support! Keep up the good work.

                    1 Reply Last reply
                    0
                    • arminunruhA Offline
                      arminunruhA Offline
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #10

                      ah no problem actually it was my fault i had to change things a little for the new sticky feature to work so thats why this didnt work anymore after u updated

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      I also code custom websites or custom Lay features.
                      💿 Email me here: 💿
                      info@laytheme.com

                      Before you post:
                      1. When using a WordPress Cache plugin, disable it or clear your cache.
                      2. Update Lay Theme and all Lay Theme Addons
                      3. Disable all Plugins
                      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                      This often solves issues you might run into

                      When you post:
                      1. Post a link to where the problem is
                      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                      Online Users
                      O
                      oli
                      S
                      StudioSchnettker
                      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                      laytheme.com
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search