Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @supervale

    Gateway theme by default has a margin added to the bottom of headings 1 – 6

    The default value of that margin is 1.5rem

    To change it, add the following CSS

    h2 {
    
        margin-bottom: "Your preferred number goes here"rem;
    
    }

    You can even set the margin to a negative value like -1rem, but make sure you check the rest of the pages to make sure nothing else breaks.

    Hope that works

    • This reply was modified 8 years, 4 months ago by j09.
    Thread Starter supervale

    (@supervale)

    Hello j09! Thanks for your help!
    I added
    h2 {

    margin-bottom: -1rem;

    }
    in my style.css but nothing changed… Maybe I made something wrong? ??

    Vale

    The gap below the 3 boxes is due to the line or horizontal ruler <hr> between the content and the text box below.
    Now you could change that space to what you prefer with this code:

    .page-template-template-home-php .site-content hr {
        margin-top: 4em;
    }

    if it does not work, try to add 4em !important;. Though I must say that the 8em original gap above and below each section of the page is consistent. If you take a look around you’ll notice that the footer has the same space around, the same for the title above the 3 boxes and so on.
    Your call, design it as you like it, but I can see the point of the developer in wanting to give consistency all across the page.
    BTW, Nice work you have done on the site.
    Cheers

    • This reply was modified 8 years, 4 months ago by Giorgio25b.
    Thread Starter supervale

    (@supervale)

    Thanks! But nothing happened… But you’re right, the space is consistent, I can also leave it … Thanks again! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Empty space in homeage’ is closed to new replies.