Less than a Half Inch on Both Sides of My Site…

Homepage Community Forums Epik Theme Support Less than a Half Inch on Both Sides of My Site…

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15562
    m
    Customer

      My website used to fill the whole screen, full width. Now or for the past few months, there is less than a half inch on both sides of my site, on every page. It’s almost like there is a tiny bit of margin starting from the beginning (header) all the way down. This very small margin on both sides shows the default background color of the page.

      I know it is a very small detail but wish to know if I can adjust this on the css file if maybe anyone knows the solution.

      Thank you!

      #15583
      kronos
      Customer

        Have a link? 馃槈

        #15588
        m
        Customer
          This reply has been marked as private.
          #15624
          kronos
          Customer

            Ok, there’s a quick fix, but you need to go through your stylesheet and html and correct some of the errors.

            To fix the issue, you can simply add/change the margin on your body to 0 for top, right, bottom, and left. So change the following margin-top

            body {
            	background: #f2f2f2;
            	color: #333;
            	font-family: 'Open Sans',"Helvetica Neue", Helvetica, Arial, sans-serif;
            	font-size: 18px;
            	font-size: 1.125rem;
            	font-weight: 400;
            	line-height: 1.625;
                    margin-top: 0 !important;
            }
            

            And replace it with this –

            body {
            	background: #f2f2f2;
            	color: #333;
            	font-family: 'Open Sans',"Helvetica Neue", Helvetica, Arial, sans-serif;
            	font-size: 18px;
            	font-size: 1.125rem;
            	font-weight: 400;
            	line-height: 1.625;
                    margin: 0 !important;
            }
            

            ………so that it covers all margins instead of just the top.

            This helps remove the space you’re seeing for now, but you’ll still need to figure out what you did to cause the issue. it’s definitely not something that was caused by the theme, because by default the theme doesn’t have that issue show up….on any site that I’ve seen here using it. So you must have added something by mistake that caused this to appear. I would check this – and this – to figure out where your errors are coming from. It could be something as simple as a typo in your custom code that you added. For example, I did see on line 1637 “Home Feature 8” you forgot to add a # to the color –

            /* Home Feature 8 */
            
            .home-feature-8 {
            	margin: 0;
            	width: 100%;
            background: f7f7f7 !important;
            
            }

            Things like this can cause the type of issues you’re having in some cases. I would run both of those links each time you find issues on your site.

            Hope this helps!

            #15648
            m
            Customer

              Hey Kronos,

              Thank you very much, it worked!!!

              I truly appreciate it. Yes, you are right, it had to be a typo of some sort when I was modifying it a while ago.

              Thanks again, very helpful!

              #15651
              kronos
              Customer

                Glad I can help 馃檪

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Less than a Half Inch on Both Sides of My Site…’ is closed to new replies.