Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Change background color of columns

Change background color of columns

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 2.0k Views 1 Watching
  • 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.
  • R
    R
    rbnbm
    wrote on last edited by
    #1

    Hey there,

    I've been trying to do it like in this post, but it did not do not what I was expecting:

    Re: horizontal line + change background color of only one column + Align image in the middle of column

    Is it correct that only columns with content count as "childs"? Which for me is a problem because of mobile.

    What I am trying to do: having white text on black background in column 3 (which works, choosing child no. 1), but I would like the second column (left to the text) to be black as well. Also, I would like to layout some other pages with black areas in them.

    Thanks for any suggestions!

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by mariusjopen
      #2

      Dear @rbnbm
      no. Childs are something different:
      https://www.w3schools.com/cssref/sel_nth-child.asp

      You can just give the column a class custom-column-background and then make it blue:

      .custom-column-background {
      background-color: blue;
      }
      

      Its pretty simple.

      I hope I could help!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • R
        R
        rbnbm
        wrote on last edited by rbnbm
        #3

        Hi Marius,

        Thanks!

        Unfortunately I don't know where/how to assign the class to the column in the gridder. In the dropdown menu I only find an option for the class of the row.

        Also - in case I get it going - would that affect the whole column, that is in every row?

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Dear @rbnbm
          right click on the column:
          0_1522958061676_Bildschirmfoto 2018-04-05 um 21.53.43.png

          And then enter the name of the class:
          0_1522958075820_Bildschirmfoto 2018-04-05 um 21.53.55.png

          And this you put into your CUSTOM CSS:

          .custom-column-background {
          background-color: blue;
          }
          

          0_1522958117200_Bildschirmfoto 2018-04-05 um 21.54.48.png

          All the best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • R
            R
            rbnbm
            wrote on last edited by rbnbm
            #5

            Hey,

            thanks again – most likely I miss something, but if I do it exactly like you have written, the class is applied to the whole row. Change the class in one column, every other column gets the same class.

            As I tried to explain in my first post - it only works when there is content in the column, p.e. some text.

            Cheers!

            1 Reply Last reply
            0
            • mariusjopenM
              mariusjopenM
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Dear @rbnbm
              Ah! Ok! The column!
              Sorry about this.
              That always confuses me. Columns and rows…

              No. Sorry. Not possible to make a different colour for the column.

              But there is a way:
              Make use of the STACK elements function.
              And give the stack element a class:
              0_1523199837616_Bildschirmfoto 2018-04-08 um 17.03.37.png

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • R
                R
                rbnbm
                wrote on last edited by
                #7

                Hi Marius,

                nice, that did the trick – thanks a lot for your help and support!

                Best
                Rbn

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                Online Users
                K
                kp-hb
                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