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. Color of Silder Backround

Color of Silder Backround

Scheduled Pinned Locked Moved General Discussion
10 Posts 2 Posters 1.8k 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.
  • Y
    Y
    yannickzs
    wrote on last edited by
    #1

    Hey Armin,

    first of all: Thanks for the awesome theme!

    I wanted to change the backgrounds of my carousels individually, as you described in http://laythemeforum.com/topic/1035/carousel-text-slide-background-color/2

    Unfortunally I can't seem to make it work. It does work if I use the code:

    .lay-carousel-slide:nth-child(2){
    background-color: #f4b43f;
    }

    But if I give a class to an individual silder, like this it doesn't work:

    .mediadruck:nth-child(2){
    background-color: green;
    }

    Weirdly if I set the "nth-child" to 1 the whole element including the captations on the bottom turn green.

    Any ideas what my problem might be?

    Thank you!

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

      Dear @yannickzs

      can you post a link to your website?

      Then we will have a look.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • Y
        Y
        yannickzs
        wrote on last edited by
        #3

        Hey @mariusjopen,

        it's not finished yet, but here is a link:
        http://yannickzurstrassen.com/
        I hope you can help.

        Thanks!

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

          Dear @yannickzs
          I can see that you made it work, right?

          .lay-carousel-slide:nth-child(4) {
              background-color: #f4b43f;
          }
          

          Best!

          Marius

          www.mariusjopen.world

          Y 1 Reply Last reply
          0
          • mariusjopenM mariusjopen

            Dear @yannickzs
            I can see that you made it work, right?

            .lay-carousel-slide:nth-child(4) {
                background-color: #f4b43f;
            }
            

            Best!

            Marius

            Y
            Y
            yannickzs
            wrote on last edited by
            #5

            Hey @mariusjopen I had that before, but I wanted to have a different background colour for different carousels. But when I give them a class or id it doesn’t seem to work. The overall colour works but it doesn’t show the individual colours.

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

              Dear @yannickzs
              I just tested.

              This works fine:

              .lay-carousel-slide:nth-child(1) {
                  background-color: red;
              }
              
              .lay-carousel-slide:nth-child(2) {
                  background-color: yellow;
              }
              

              Best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • Y
                Y
                yannickzs
                wrote on last edited by
                #7

                Hey @mariusjopen,
                sorry... still not what I meant. I was wondering if it was possible to have different colors at different carousels, not slides. Say one carousel is project one and another carousel is project two. I want the second slider in both carousels to be colored. In carousel one green and in carousel two red. I was trying to give them a different id but it didn't work (the slider just had a white background), Is there a solution?
                Sorry if I was unclear.

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

                  Dear @yannickzs
                  ok. I get it now.

                  #car_1 .lay-carousel-slide:nth-child(2) {
                      background-color: red;
                  }
                  
                  #car_2 .lay-carousel-slide:nth-child(2) {
                      background-color: yellow;
                  }
                  

                  You could give each carousel an ID by right clicking on it in the Gridder.

                  Let me know if that works.

                  Best!

                  Marius

                  www.mariusjopen.world

                  Y 1 Reply Last reply
                  0
                  • mariusjopenM mariusjopen

                    Dear @yannickzs
                    ok. I get it now.

                    #car_1 .lay-carousel-slide:nth-child(2) {
                        background-color: red;
                    }
                    
                    #car_2 .lay-carousel-slide:nth-child(2) {
                        background-color: yellow;
                    }
                    

                    You could give each carousel an ID by right clicking on it in the Gridder.

                    Let me know if that works.

                    Best!

                    Marius

                    Y
                    Y
                    yannickzs
                    wrote on last edited by
                    #9

                    @mariusjopen you are the best! It worked. Thanks so much.
                    I forgot the ".lay-carousel-slide" after the id.

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

                      Dear @yannickzs
                      great! Happy to hear :-)

                      Marius

                      www.mariusjopen.world

                      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
                      A
                      Anna_S
                      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