Site logo

Archived topic

Adjust 3 column header in mobile

5 replies · Started by Suzanne on August 12, 2020

Viewing posts 1–6 of 6

Hi, I've set up a 3 column header using https://docs.generatepress.com/article/split-header-three-sections/ and all looks good on desktop. The handheld mobile version is not so good. I'd like to adjust the handheld version in this way:
1. Stack the logo (header-section-1), NAME(header-section-2), and ADDRESS&PHONE(header-section-3) on top of each other
2. Adjust the font size for NAME
3. Remove the ADDRESS and just display PHONE

Can someone assist with the CSS to achieve this?

Hi Tom,
Thank you for the reply.

1. I've commented out my css and used the following css and it's still not stacking in mobile:
.header-section {
display: flex;
}
.header-section > div {
width: 33.33333%;
}
@media (max-width: 768px) {
.header-section > div {
width: 100%;
}
}

2. I've added the following css and it has no effect on changing the font size:
@media (max-width: 768px) {
.header-section-2 {
font-size: 25px;
}
}

Any other ideas? Perhaps I have an improper setting somewhere else?

1. Ah, I see that the page has been updated with new CSS. I have been going crazy trying to figure out what was different. Everything is working as it should now. Thank you.

You're welcome :)

This archived topic is closed to new replies.