PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 18, 2022

[FIXED] Why is there a white space at the beginning of the body/html document (on top of the navigation bar)?

 July 18, 2022     css, document-body, html     No comments   

Issue

check the code here:

https://landing-page.adrianojedaf.repl.co

I thought it could be the overflow-x so I disable the Scroll Bar in CSS but the white space on top of the navigation-bar is still there. When I use the Browser's inspector, it seems like the white space is part of the header, but it doesn't have any margin or other property that could be generating it so I really don't know.


Solution

Here put this on your code instead.I remove your unknown image tag To resolve your problem and this should work.

<header id="header">
    <nav id="nav-bar">
      <div class="content-width">
        <img src="images/carrot.png">
        <a class="logo" href="index.html">Carrot</a>
        <div class="nav-right">
          <a class="nav-link" href="#submit">Features</a>
          <a class="nav-link" href="#goVideo">Process</a>
          <a class="nav-link" href="#prices">Prices</a>
        </div>
      </div>
    </nav>
  </header>
  



Answered By - Crystal
Answer Checked By - Mildred Charles (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing