Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extra white space at the top of my page [duplicate]

Tags:

html

css

I'm working on a website and I just noticed there there is this unexplained white space at the top and bottom of my page. I search through some post and they told me to make sure I used UTF-8 encoding without BOM and I tried that and it made no difference. If anyone would be willing to look at it the url is url

like image 800
Absolutezero Avatar asked Jan 28 '26 02:01

Absolutezero


2 Answers

The default spacing (margin) on the <h1> element is causing the top spacing. Add this in your css.

h1 { margin-top: 0; }
like image 155
Mike Vranckx Avatar answered Jan 29 '26 14:01

Mike Vranckx


It's not a space.. There is a button on the top right corner.

Remove this source from your HTML code

    <div id="escapeButton">
        <button> <a href="http://google.com" title="escape">Escape</a> </button>
    </div>
like image 28
Shankar Narayana Damodaran Avatar answered Jan 29 '26 15:01

Shankar Narayana Damodaran