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. Center table text horizontally in carousel

Center table text horizontally in carousel

Scheduled Pinned Locked Moved General Discussion
10 Posts 2 Posters 342 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.
  • A Offline
    A Offline
    aheneah
    wrote on last edited by
    #1

    Hi!

    I added a table text (because I need a 2 columns layout) in a carousel but I can't center it horizontally. It always shows up aligned to left.
    I've also tried with CSS but can't find a way to make it work.
    Is there any way to solve this problem?

    Thanks in advance!!Captura de ecrã 2021-02-19, às 09.18.31.png

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @aheneah

      Some first steps if you could please :)

      You have set the Table in the middle of your Gridder Layout?

      When creating the table in the 'text' element you could highlight the Table and set to 'align-center' like you would with normal text.

      Could you post a link to the website in question? :)

      Talk soon & have a wonderful day!

      Richard

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aheneah
        wrote on last edited by
        #3

        Dear Richard,

        Sorry for my late reply. My website is unavailable since it's under construction, so I had to find another way to share with you an example.

        Please check this link.

        I've tried with the table basic edits but it also doesn't work.

        I would be really grateful if you could help me find a solution to have two text columns centered in a carousel.

        Have a great day,
        Ana

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by Richard
          #4

          Dear Ana @aheneah

          Unsure of your exact setup so i hope that just adding this code will do for you :)

          Add the following Code into the Custom CSS area of 'Lay Options - Custom CSS & HTML'

          table.aligncenter {
              margin-left: auto;
              margin-right: auto;
          }
          

          Screen Shot 2021-02-26 at 9.34.32 AM.png
          Hope this helps :)
          Richard

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aheneah
            wrote on last edited by
            #5

            Dear Richard,

            It worked perfectly! How easy... Thank you so much!

            In the same topic, I would need to make these carousel texts possible to choose and copy like texts normally and disable "next" navigation on hover. Is there any way to do it?

            Once again, thank you!
            Best,
            Ana

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

              Dear Ana @aheneah

              Like a highlight - Copy / Paste type situation?

              Best
              Richard

              1 Reply Last reply
              0
              • A Offline
                A Offline
                aheneah
                wrote on last edited by
                #7

                Dear Richard,

                Yes, exactly!

                Best,
                Ana

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

                  Dear Ana @aheneah

                  Just to make sure - you are unable to highlight the text because its set to 'slide' so any clicking action will 'grab' the slide.

                  Make sure in Lay options > Carousel Addon > that transition type is not on slide and any other options are set how you wish.

                  Let me know how you go! :)

                  Best
                  Richard

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aheneah
                    wrote on last edited by
                    #9

                    Dear Richard,

                    Thanks for your answer!
                    I've set the transition type to "none" and I still can't highlight the text.
                    Seems like the carousel arrows are stacked above the slide texts and any click you make will always direct you to the next/previous slide. Is there any CSS code to limit the arrows "area" to the screen edges?

                    Once again, thanks for your tips!

                    Best,
                    Ana

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

                      Dear Ana @aheneah

                      Unfortunately the whole 'slide' has the 'click event' - To describe it like a 'Glass Window' over the carousel. anywhere you click will be on this window (triggering the slide).

                      With the Current Lay Theme options you cannot select/highlight the text - sorry about this and any inconvenience it may cause to your design.

                      It is likely possible with some further Coding/hacking - I wanted to give this a go for you as a solution:
                      https://stackoverflow.com/questions/53367064/how-to-enable-select-text-in-swiper-js

                      But it hasn't worked. I cannot go in further at the moment to get this to work sadly.

                      Once again sorry if cannot help further Ana - You may wish to seek the aid of a developer if you know someone who could lend a hand- - Or any others reading this Thread if that could Help Ana please :)

                      Have a lovely day Ana & best wishes
                      Sincerely
                      Richard

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