What you have done seems to work. The black header covers the whole top of the page. Are you trying to get "Title here" to be central? If so you just need to change the text alignment of that paragraph to "center".
Sorry if I've misunderstood what you're trying to achieve!