I'm trying to place an image in my website behind everything that's in my header and a little more, but there's a problem with doing that. I've tried placing the image like this:
body {
background-image:url('images/city.jpg');
background-position: top;
background-size: cover;
height: 500px;
}
But the result is in this screenshot.
There's always a problem with the 'SMS MESSAGING MADE EASY' part, either the image pushes it down or it doesn't allow the image to extend above it.
This is the HTML for the "SMS..." text:
<h1 class="n1">
<font face="ralewaybold">
SMS MESSAGING MADE EASY
</font>
</h1>
And the CSS:
.n1 {
display: flex;
justify-content: center;
margin-top: 10em;
}
I want the image to reach the top of the page - https://prnt.sc/qh4foe
SMS MESSAGING MADE EASY
`code`.n1 { display: flex; justify-content: center; margin-top: 10em;} `code` – Cubex Dec 29 '19 at 12:11