Jump to content

Center Logo and Site TItle on mobile

Recommended Posts

Posted (edited)

I found CSS  to place the site title next to the logo.

@media only screen and (min-width: 601px)
{
.header-title-logo::after {
    content: "Site Title";
    font-size: 45px !important;
    vertical-align:middle;
    padding-left: 30px;

}}

Result:

BannerHeader.thumb.png.d9cb367407d87adfaf2791c28ca130a7.png

 

The mobile layout looks bad. I would like it to look something like this:

Responsive.png.3d3279110a12a9e9605a3b8216253f9c.png

Logo Centered  on phone/screen. Title centered underneath.

 

Thanks for any help.

 

 

 

 

 

 

Edited by person2337
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Remove your code & use this new code

/* title logo */
.header-title-logo::after {
    content: "Site Title";
    font-size: 45px !important;
    margin-left: 10px;

}
.header-title-logo {
    display: flex;
    align-items: center;
}
@media screen and (max-width:767px) {
	.header-mobile-logo a:after {
     content: "Site Title";
    font-size: 45px !important;
    margin-left: 10px;
    text-align: center;
}
}

If it doesn't work, please share link to your site, I can check it again easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.