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. Addons
  3. Hover Images change on Refresh and responsive positioning

Hover Images change on Refresh and responsive positioning

Scheduled Pinned Locked Moved Addons
14 Posts 2 Posters 1.9k 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.
  • RichardR
    RichardR
    Richard
    Global Moderator
    wrote on last edited by
    #2

    Dear Christian
    @cschm-tz

    I have sent you a message via chats :)

    Best wishes and talk soon
    Richard

    1 Reply Last reply
    0
    • C
      C
      cschm.tz
      wrote on last edited by
      #3

      @Richard-K
      This is the example I was referring to where the text boxes misalign with the navigation menu. Is there a way to control this?

      The aligned version is a Macbook 15inch screen shot, and the first version (which is wrong) is taken from an iMac. Any thoughts on how to make it behave 'responsively'? Thank you so much!!

      Screen-Shot-2021-01-26-at-19.01.54.jpg Captura de pantalla 2021-01-18 a las 18.42.15.png

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

        Dear @cschm-tz

        The width of the navigation bar is determined by the Menu Items. I believe yours are set to px and therefore on a larger screen being font-size: 16px do not take up as much room and therefore fill-out less width that on a smaller screen. You can change the Font size to em or vw to have the font size determined by the browser's size. If you want to force the Menu bar to always have a specific width this is also possible but depending on how big the font-size is they menu items may not have enough room to spread out on smaller screens.

        There are always options :)

        Best
        Richard

        1 Reply Last reply
        0
        • C
          C
          cschm.tz
          wrote on last edited by
          #5

          Dear @Richard-K

          Thanks so much for your suggestions, it sounds like using em's or vw is exactly what I need, is there any chance you can guide me as to where this is applied? How do I address the nav through css etc?

          Thanks again for your time and patience.
          All the best

          Christian

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

            Dear @cschm-tz

            Sorry for the delay! do you still need help addressing the Nav elements?

            Best wishes and talk soon :)
            Richard

            C 1 Reply Last reply
            0
            • RichardR Richard

              Dear @cschm-tz

              Sorry for the delay! do you still need help addressing the Nav elements?

              Best wishes and talk soon :)
              Richard

              C
              C
              cschm.tz
              wrote on last edited by
              #7

              Hi @Richard-K, Yes please that would be really appreciated!
              Thanks a lot and hope you are well
              C

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

                Dear Christian @cschm-tz

                In Customizing â–¸ Menu Style > Primary Menu
                You are able to set the menu-items based on %

                However if you wish to target them with CSS we can 'call' the class 'menu-item' in the navigation:

                .laynav .menu-item {
                    font-size:1.5vw !important;
                }
                

                We are addressing the menu-item and setting its 'font-size' with CSS ( Custom CSS can be added in 'Lay Options - Custom CSS & HTML' )

                When using 'vw' the font-size will be calculated based on the user's browser/screen width ( viewport ).

                https://css-tricks.com/fun-viewport-units/

                Hope this helps christian :)

                Sincerely
                Richard

                C 1 Reply Last reply
                0
                • RichardR Richard

                  Dear Christian @cschm-tz

                  In Customizing â–¸ Menu Style > Primary Menu
                  You are able to set the menu-items based on %

                  However if you wish to target them with CSS we can 'call' the class 'menu-item' in the navigation:

                  .laynav .menu-item {
                      font-size:1.5vw !important;
                  }
                  

                  We are addressing the menu-item and setting its 'font-size' with CSS ( Custom CSS can be added in 'Lay Options - Custom CSS & HTML' )

                  When using 'vw' the font-size will be calculated based on the user's browser/screen width ( viewport ).

                  https://css-tricks.com/fun-viewport-units/

                  Hope this helps christian :)

                  Sincerely
                  Richard

                  C
                  C
                  cschm.tz
                  wrote on last edited by
                  #9

                  Dear @Richard-K,

                  Thankso so much for your tips and links, will definitely be handy in future scenarios.

                  In this case, I am not after controlling the size of the text, it is got more to do with the width/position it occupies. Using 'vw' as suggested still makes the position vary and forces the text to change size. (see attachments)

                  Is there a way of avoiding this, i.e telling it to stay aligned to my other columns and with the same text size until it reaches the next breaking point?

                  Thanks again and hope youre having a great week
                  Christian

                  Captura de pantalla 2021-02-16 a las 13.53.10.png Captura de pantalla 2021-02-16 a las 13.53.01.png

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

                    Dear Christian @cschm-tz

                    Give this a go:

                    nav.laynav.primary {
                        max-width: 38.5%;
                    }
                    

                    Screen Shot 2021-02-17 at 4.37.57 PM.png

                    Best wishes & have a wonderful day

                    Richard

                    C 1 Reply Last reply
                    0
                    • RichardR Richard

                      Dear Christian @cschm-tz

                      Give this a go:

                      nav.laynav.primary {
                          max-width: 38.5%;
                      }
                      

                      Screen Shot 2021-02-17 at 4.37.57 PM.png

                      Best wishes & have a wonderful day

                      Richard

                      C
                      C
                      cschm.tz
                      wrote on last edited by
                      #11

                      @Richard-K said in Hover Images change on Refresh and responsive positioning:

                      nav.laynav.primary {
                      max-width: 38.5%;
                      }

                      Dear @Richard-K

                      Thanks so much!!!

                      Will this always affect text size? Ideally the text stays the same until it snaps in the first breaking point. This is mainly got to do with the fact that, if not, the text size ends up being very different to the site title, and the spacing becomes odd :/

                      Can anything be done?
                      Thanks again for all your help!

                      C

                      Captura de pantalla 2021-02-18 a las 12.10.22.png

                      Captura de pantalla 2021-02-18 a las 12.10.37.png

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

                        Dear @cschm-tz

                        If your font-size is VW then it will of course be affected by the browser-width this is its purpose - so if you don't want it to change remove the VW settings and it will be PX, it wont change size until the first breaking point and all will be fine.

                        Best
                        Richard

                        C 1 Reply Last reply
                        0
                        • RichardR Richard

                          Dear @cschm-tz

                          If your font-size is VW then it will of course be affected by the browser-width this is its purpose - so if you don't want it to change remove the VW settings and it will be PX, it wont change size until the first breaking point and all will be fine.

                          Best
                          Richard

                          C
                          C
                          cschm.tz
                          wrote on last edited by cschm.tz
                          #13

                          Dear @Richard-K

                          Hope you are havin a lovely week!
                          Thanks so much for your tips, its almost perfect.

                          This scenario still leaves some info out/crops the nav when shrinking the browser as shown in the following screenshots. Any way to avoid this? Tweaking the max width only made the issue bigger for me ;(

                          Thanks and all the best
                          Christian

                          Captura de pantalla 2021-02-25 a las 14.47.01.png
                          Captura de pantalla 2021-02-25 a las 14.46.50.png
                          Captura de pantalla 2021-02-25 a las 14.47.09.png

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

                            Dear Christian @cschm-tz

                            This needs to be thought about as a design issue not a coding issue:

                            You want the Menu to start at the same left margin as the page content/text, this is already achieved:

                            Font size is responsive so when you re-size the browser/page and text expands - it will go off the edge of page, or the spaces between the menu items will shrink until they clash and go into each other.

                            If Font-size is 'px' and stays the same size when page is resized it wont match the font-size of the content ( because content is responsive ). Menu items are pixels and non responsive and will stay the same size - thats its function when using pixels - its 'set'

                            This is a design choice that is up to you Christian.

                            Best wishes
                            Richard

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