[Help] HTML Page: Space between Header and top of page. Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
3 posters

    [Help] HTML Page: Space between Header and top of page.

    T3CHNOCIDE
    T3CHNOCIDE
    New Member


    Male Posts : 11
    Reputation : 1
    Language : English, HTML, CSS, [Learning] Swedish.
    Location : United Kingdom

    Solved [Help] HTML Page: Space between Header and top of page.

    Post by T3CHNOCIDE Tue 10 Apr - 4:39

    Hello and thank you for visiting my problem thread,

    I'm trying to use HTML and CSS to make a header so I can make a page from scratch. I'm new to CSS but am experienced with HTML. I have removed the spacing between the header and the left & right side of the page, however an infuriating space between the top of the page and my header remains, as shown here:

    [Help] HTML Page: Space between Header and top of page. 2i29ao0

    I am using the following code:

    Code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>T3CH-Gaming - T3CH's Gaming Portfolio.</title>
       <style type="text/css">
    body
    {
    height:100%;
    width:100%;
    background:url(http://www.nasa.gov/images/content/188598main_star_burst_galaxies_lg.jpg) no-repeat center center;
    }
    #curvedheader
    {
    background:url(http://i41.tinypic.com/k9dfdi.png) no-repeat center center;
    height:100px;
    width:2000px;
    display:block;
    position:absolute;
    top:0;
    left:0;
    }
      </style>
    </head>

    <body>
       <div id="curvedheader" style="width:100%;">
        </div>
    </body>
    </html>

    Any suggestions on how to approach this problem?

    Thank you,
    [Help] HTML Page: Space between Header and top of page. 2vigt8h

    (If I do not reply instantly, it is probably because I have fallen asleep, but than you for contributing)


    Last edited by T3CHNOCIDE on Tue 10 Apr - 11:57; edited 1 time in total (Reason for editing : Marking page as Solved.)
    The Shuffler
    The Shuffler
    Forumember


    Posts : 49
    Reputation : 1
    Language : English

    Solved Re: [Help] HTML Page: Space between Header and top of page.

    Post by The Shuffler Tue 10 Apr - 5:03

    Whats the site ?

    if you need to space out stuff you can add

    Code:
    </br></br>
    T3CHNOCIDE
    T3CHNOCIDE
    New Member


    Male Posts : 11
    Reputation : 1
    Language : English, HTML, CSS, [Learning] Swedish.
    Location : United Kingdom

    Solved Re: [Help] HTML Page: Space between Header and top of page.

    Post by T3CHNOCIDE Tue 10 Apr - 5:10

    The Shuffler wrote:Whats the site ?

    if you need to space out stuff you can add

    Code:
    </br></br>

    Hey Shuffler,

    The site hasn't been published, it's brand new and is under construction. However, the problem I'm having is that there is a space between the top of my header and the top of my page, and I want the header to cover the top of the page; I fear using the <br/> tag will just increase that space.

    Thanks,
    [Help] HTML Page: Space between Header and top of page. 2vigt8h
    The Shuffler
    The Shuffler
    Forumember


    Posts : 49
    Reputation : 1
    Language : English

    Solved Re: [Help] HTML Page: Space between Header and top of page.

    Post by The Shuffler Tue 10 Apr - 5:27

    T3CHNOCIDE wrote:
    The Shuffler wrote:Whats the site ?

    if you need to space out stuff you can add

    Code:
    </br></br>

    Hey Shuffler,

    The site hasn't been published, it's brand new and is under construction. However, the problem I'm having is that there is a space between the top of my header and the top of my page, and I want the header to cover the top of the page; I fear using the <br/> tag will just increase that space.

    Thanks,
    [Help] HTML Page: Space between Header and top of page. 2vigt8h


    Hey Bro,
    Well the code </br> is just simple it would just space out like hitting the ENTER bar.
    T3CHNOCIDE
    T3CHNOCIDE
    New Member


    Male Posts : 11
    Reputation : 1
    Language : English, HTML, CSS, [Learning] Swedish.
    Location : United Kingdom

    Solved Re: [Help] HTML Page: Space between Header and top of page.

    Post by T3CHNOCIDE Tue 10 Apr - 11:37

    The Shuffler wrote:
    T3CHNOCIDE wrote:
    The Shuffler wrote:Whats the site ?

    if you need to space out stuff you can add

    Code:
    </br></br>

    Hey Shuffler,

    The site hasn't been published, it's brand new and is under construction. However, the problem I'm having is that there is a space between the top of my header and the top of my page, and I want the header to cover the top of the page; I fear using the <br/> tag will just increase that space.

    Thanks,
    [Help] HTML Page: Space between Header and top of page. 2vigt8h




    Hey Bro,
    Well the code </br> is just simple it would just space out like hitting the ENTER bar.

    Hey Again,

    Yes, but that is the problem with the <br/> tag it spaces things out. What I'm facing, is the need to remove the space between the header and the top of the page; without a space, the header will touch the top of the page.

    Thanks though,
    [Help] HTML Page: Space between Header and top of page. 2vigt8h
    T3CHNOCIDE
    T3CHNOCIDE
    New Member


    Male Posts : 11
    Reputation : 1
    Language : English, HTML, CSS, [Learning] Swedish.
    Location : United Kingdom

    Solved Re: [Help] HTML Page: Space between Header and top of page.

    Post by T3CHNOCIDE Tue 10 Apr - 11:57

    Hello all,

    I apologise for the double post, however I have resolved this issue. If anyone else is facing this issue, please do not hesitate to PM me.

    Thank you,
    [Help] HTML Page: Space between Header and top of page. 2vigt8h
    Jophy
    Jophy
    ForumGuru


    Male Posts : 17922
    Reputation : 836
    Language : English
    Location : Somewhere

    Solved Re: [Help] HTML Page: Space between Header and top of page.

    Post by Jophy Tue 10 Apr - 12:00

    Next time please use the EDIT button. Thanks.


    Since this thread is marked as solved, this will be moved now.