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. 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 420 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.
  • C Offline
    C Offline
    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 Offline
      RichardR Offline
      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 Offline
        C Offline
        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 Offline
          RichardR Offline
          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 Offline
            C Offline
            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 Offline
              RichardR Offline
              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 Offline
                C Offline
                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 Offline
                  RichardR Offline
                  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 Offline
                    C Offline
                    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 Offline
                      RichardR Offline
                      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
                      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