CaldwellYSR
Member
I have some code that's giving me about 10px of blank space at the top of the page and I'm not sure why. I've put margin: 0; padding: 0; on my body so that shouldn't effect anything. I just want my header to be flush with the top of the viewport and it isn't. I know I could easily put a negative margin-top on there but I don't think that's the best way to go about it.
	
	
	
		
	
	
	
		
This should result in the header background image stretching 100% of the screen but the content staying within the 960px box to fit the rest of the content and width-wise it does but I'm having the problem of around 10px of whitespace at the top :/ Here's a screenshot.
	
	
	
		
		
		
			
		
		
	
	
		
	
The grey pattern should stretch to the top but it doesn't
			
			
		HTML:
	
	<body>
    <div class="wrapper">
        <header>
            <hgroup>
                <h1>Snippet<br />Publishing</h1>
                <h5>This is a tagline</h5>
            <hgroup>
            <form action="" method="post">
                <input type="text" id="search" value="Search" onfocus="this.value=' '" />
            </form>
        </div>
    </header>
    ...
    ...
    ...
</body>
	
		Code:
	
	.wrapper {
    margin: 0 auto;
    width: 960px;
}
#head {
    background: url(images/header-bg.jpg);
}
	This should result in the header background image stretching 100% of the screen but the content staying within the 960px box to fit the rest of the content and width-wise it does but I'm having the problem of around 10px of whitespace at the top :/ Here's a screenshot.
	The grey pattern should stretch to the top but it doesn't