I would like to move the h1 text more to the middle of the screen, but the left margin isn't working properly. I've tried increasing and decreasing the size of the margin (both with pixels and percentages) but it has no effect on the page. I've also tried changing the background colour to see if I just forgot to end the previous line or I had the wrong dimensions, and the colour changed (so no errors there). I've also ran both the HTML and the CSS code through their respective validators and there's no errors related to the margin/header.
Here's the HTML code:
<body>
<div class="menu">
<h1><span style="font-size: 50px; text-decoration: none; text-shadow: 4px 4px 1px #ffffff; color:#f5cec9;">Welcome!</span><br>What do you want to make?</h1>
and the CSS code:
img, img.menui {
width: 165px;
height: auto;
margin-left: 0px;
margin-right: 0px;
}
div, div.cake, div.menu {
width: 80%;
height: 60%;
margin-left: 10%;
margin-right: 10%;
margin-top: 7%;
}
h1 {
font-size: 16px;
/*margin-left: 428769875937548px;*/
}
<div class="menu">
<h1><span style="font-size: 50px; text-decoration: none; text-shadow: 4px 4px 1px #ffffff; color:#f5cec9;">Welcome!</span><br>What do you want to make?</h1>
</div>
For more context you can find the website here