Stop header & site title from moving when resizing window
-
Hi,
I have added custom css for desktop, mobile, & tablet devices to get the desired positioning that I wanted. Everything shows well when the browser window is full sized, however if i resize the browser smaller, it moves my header logo & text along with the site title. I would like everything to be in a fixed position when resizing down on all devices. Here is all the custom additional css I have added to get everything to show right on all devices when window is not resized
.site-title {
font-size: 20px;
font-weight: bold;
line-height: 1;
margin: 0;
padding: 58px 0 10px;
position: relative;
top: -24px;
left: -57px;
}@media (max-width: 320px) {
.site-header + * {
margin-top: 20px;
}
}@media (min-width: 320px) {
.site-title {
font-size: 6px;
position: relative;
top: -2px;
left: -19px;
}
}@media (min-width: 320px) {
.site-description {
display: block;
position: relative;
top: 0px;
left: 0px;
}@media (min-width: 600px) {
.site-title {
font-size: 19px;
position: relative;
top: 2px;
left: -33px;
}
}@media (min-width: 600px) {
.site-description {
position: relative;
top: -15px;
left: 0px;
}@media (min-width: 900px) {
.site-title {
font-size: 19px;
position: relative;
top: -24px;
left: -58px;
}
}@media (min-width: 900px) {
.site-description {
position: relative;
top: 3px;
left: 292px;
}`Please help! Thank you
The page I need help with: [log in to see the link]
- The topic ‘Stop header & site title from moving when resizing window’ is closed to new replies.