remcoland59
remcoland59

Reputation: 19

How to fix padding on body

I got this white padding on my homepage https://cyclingland.github.io/home.html and I can't find the issue in my css... If someone can find the issue you're a hero!

Upvotes: 0

Views: 542

Answers (2)

Misantorp
Misantorp

Reputation: 2831

You're not being specific here, but if it's the left white "padding" on the main content the #intro has a margin-left: 20px property set.

Upvotes: 0

Salvatore
Salvatore

Reputation: 1435

Remove margin-left: 20px from #intro.

This is creating the extra white space on the left side of your website.

You also need an additional change. Not sure if intended because your height: 100% on #intro is being overridden.

So basically your CSS class in cyclingland.css should look like -

.intro {
    overflow: hidden;
    height: 100% !important;
    /* margin-left: 20px; */
    padding-left: 20px;
}

Upvotes: 2

Related Questions