- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi,
how can I increase the logo size in the following website? In mobile version it appears too small.
Your .site-branding
DIV has a max-width of 43%. Maybe you can set that to a higher percentage using a media query for mobile?
Hi JeroenR,
thanks for your reply.
In my style.css file there only the DIV, but not that max-width of 43%.
I’ve tried to add the following code to Custom CSS, but it doesn’t work:
@media (max-width: 767px) {
.site-branding {
max-width: 73%
}
}
The style is set in a style element in de header with the id wp-custom-css
.
In there you can find the line .site-header .site-branding {max-width: 43%;}
You can probably override it by setting the selector to .site-header .site-branding
in your media query to make it as specific as in the style element described above.
And make sure that your custom stylesheet is called last.
Thanks JeroenR, it works.
For those who have the same problem, here’s the solution:
@media (max-width: 767px) {
.site-header .site-branding {max-width: 75%;}
}