Hey guys!
I am working on building the “Wikipedia Viewer” and I am having some trouble with the layout. Admittedly I have issues with CSS layout on many projects, and usually need to get help from an experience Developer friend of mine, I thought I’d try reaching out on the forum.
As I can only place one image, here is what you can see happening when I make the browser smaller
However here you can see that my text seems to move when I make the page smaller
I’ve played around with a couple of different options, but here is the current code I have on the H1 now (which has a background colour)
h1 {
font-family: ‘Cinzel’, serif;
background-color: #076d8a;
font-weight: 400;
color: white;
font-size: 50px;
text-align: center;
height: 225px;
width: 100%;
margin-top: 340px;
padding-top: 75px;
position: fixed;
display: block;
}
I’m not sure if this is the best way, I tried wrapping a span around the text in H1 to see if I could access and somehow fix the text directly, however I have had issues with everything I have tried.
I hope with numerous attempts at playing with css layout it will start to make more sense to me.
Thanks for your help in advance
Francesca x