html - CSS - My div wont place in top left corner -


when i'm trying place header-div in top left corner, there white space between header-div , top, , left. how move div corner?

body {     width:100%;     height:190%; }  #header{     display:block;     background-color: #1b1b1b;     width:100%;     height:50px;     } 

it seems struggling margin , padding.

try add margin , padding in body.

body {     width: 100%;     height: 190%;     margin: 0;     padding: 0; } 

here demo.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -