I have two questions, why does the position relative make the part where the h1 header is white even thought the background colour is blue?
How would I center this element so it's always centered no matter on the screen size?
<h1 id="maintitle">Find your new css!</h1>
html {
background-color: rgb(171, 248, 235);
font-family: sans-serif,Tahoma, Verdana, 'Times New Roman';
}
h1#maintitle {
position: relative;
margin: 0 0 0 0;
width: 400px;
padding: 10px;
width: 50%;
top: 50%;
}