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. Right page border missing / right edge overflowing

Right page border missing / right edge overflowing

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 472 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.
  • B Offline
    B Offline
    brianagarelli
    wrote on last edited by
    #1

    Hi there,

    I've added a page border using CSS to my site. However, the right edge is not showing? After looking a bit closer, it seems like the right side of my site is not flowing properly to the edges of my screen (there's a bit more space on the left than there is on the right). Here's a screenshot for reference.

    https://www.dropbox.com/s/14dgq5uljhocu4p/Screenshot 2019-02-13 12.04.30.png?dl=0

    Thanks!

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

      Dear @brianagarelli

      can you post a link to your website?

      Then we can have a look :-)

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brianagarelli
        wrote on last edited by
        #3

        Hi Marius, thanks for getting back to me! My website is at www.brianagarelli.com

        Thanks,

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

          Dear @brianagarelli
          I would not use this way.

          I would build 4 boxes with CUSTOM HTML.
          With CUSTOM CSS I would position them fixed to build the frame.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • B Offline
            B Offline
            brianagarelli
            wrote on last edited by
            #5

            Thanks @mariusjopen

            Any idea how to avoid having the content scroll on top of the border color? I'm using this for Custom HTML:

            <div class="border"></div>

            And this in Custom CSS:

            body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            }

            .border {
            position: fixed;
            top: 0;
            left: 0;
            border: 12px solid #000;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            }

            Thanks!

            1 Reply Last reply
            0
            • edgrbnzE Offline
              edgrbnzE Offline
              edgrbnz
              wrote on last edited by edgrbnz
              #6

              Well I guess it’s because css-borders always add to the element. So the div gets bigger – If you add 15px to one side it will push the other side out of the viewport – That’s why you don’t see the border on the right side and probably wouldn’t see it on the bottom if there were no footer.

              If you set the body width to roughly 98% you can see the border on the right. I wouldn’t consider this a clean solution though…

              You could try adding box-sizing: border-box; to your .border class as written over here and see if that does the trick.

              ✦ ✦ ✦

              B 1 Reply Last reply
              1
              • edgrbnzE edgrbnz

                Well I guess it’s because css-borders always add to the element. So the div gets bigger – If you add 15px to one side it will push the other side out of the viewport – That’s why you don’t see the border on the right side and probably wouldn’t see it on the bottom if there were no footer.

                If you set the body width to roughly 98% you can see the border on the right. I wouldn’t consider this a clean solution though…

                You could try adding box-sizing: border-box; to your .border class as written over here and see if that does the trick.

                B Offline
                B Offline
                brianagarelli
                wrote on last edited by
                #7

                @edgrbnz That worked! Thanks so much :)

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

                  Dear @brianagarelli
                  great answer @edgrbnz .

                  Best!

                  Marius

                  www.mariusjopen.world

                  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
                  M
                  michael_vvc
                  arminunruhA
                  arminunruh
                  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