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. Image Hover Full size with border on site

Image Hover Full size with border on site

Scheduled Pinned Locked Moved Addons
5 Posts 2 Posters 98 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.
  • G Offline
    G Offline
    gridch
    wrote on Sep 15, 2022, 2:12 PM last edited by
    #1

    Hi!

    I am trying to set a page with links and image hover on fullsize with a white border on each corner of the site.
    I noticed that I can't change the weights and heights on the settings with fullsize,
    Can I achieve this with css? I just don't know how to do it.

    Would it be fine to add some custom codes just like that for example?

    border-right: 10px solid #000;
    border-left: 10px solid #000;
    border-bottom: 10px solid #000;

    I really would appreciate some help.

    Many thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Sep 16, 2022, 9:41 AM last edited by
      #2

      use this

      .lay-imagehover-region img{
          top: 10px!important;
          left: 10px!important;
          width: calc( 100% - 20px )!important;
          height: calc( 100vh - 20px )!important;
      }
      
      1 Reply Last reply
      0
      • G Offline
        G Offline
        gridch
        wrote on Sep 16, 2022, 11:17 AM last edited by
        #3

        @arminunruh said in Image Hover Full size with border on site:

        .lay-imagehover-region img{
        top: 10px!important;
        left: 10px!important;
        width: calc( 100% - 20px )!important;
        height: calc( 100vh - 20px )!important;
        }

        Thanks a lot!! It worked fine! :)))

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gridch
          wrote on Sep 16, 2022, 1:04 PM last edited by
          #4

          Hi,

          I tried to add some custom css to modify the same code you proviced me but to be applied in the background images in order to have the same white border on the site even in background images (because they fit the whole screen) I need them with border also.

          I tried this but doesn't do the job:

          .cover-region-desktop .cover-inner {
          background-image: url(/wp-content/uploads/2022/07/griseldaduch_architectures_21.jpg);
          background-size: cover;
          background-attachment: fixed;
          background-repeat: no-repeat;
          background-position: center;
          padding: 10px!important;
          }

          What I am doing wrong?

          Thank you a lot!

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Sep 17, 2022, 8:05 AM last edited by
            #5
            .cover-region .background-image img{
                top: 10px!important;
                left: 10px!important;
                width: calc( 100% - 20px )!important;
                height: calc( 100vh - 20px )!important;
            }
            

            i guess this should work

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes

            4/5

            Sep 16, 2022, 1:04 PM


            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
            M
            MWPA
            5 minutes ago
            O
            okitswinter
            25 minutes ago
            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.
            4 out of 5
            • First post
              4/5
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search