Jump to content

Adjusting mobile version home page layout

Recommended Posts

Posted

Site URL: http://www.jessicawisemanphotography.com

Hi, I am having a lot of trouble with the mobile version of my homepage. I had previous help on here with some code to get my logo large enough for the web version as well as to have to colour white on the home page and black on all other pages which all worked perfectly for the web version. However, the code has been applied to the mobile version too and the logo is simply too big for the mobile version. 

This is the code I have used so far......

.header-title-logo img { max-height: 3000px; max-width: 500px; }
.homepage .header-title-logo img {filter: invert(1);}

 

As you can see from the attached photos below the logo overlaps my page links and doesn't fit in the space. It would be nice to have it a bit smaller to fit and not overlapping. Im not sure if this is possible but I would also love the drop down menu to be higher, more towards the top corner of the page rather than on the side half way down. But honestly that isn't the ain priority right now. 

Any help would be appreciated! Thank you!! 

 

@tuanphan

IMG_2431.PNG

IMG_2432.JPG

IMG_2433.JPG

  • Replies 8
  • Views 670
  • Created
  • Last Reply
Posted

@tuanphan Thank you so much for your help!! I have managed to get it the right size but now can't figure out code to invert the logo colour on the mobile version. I took a few guesses but honestly with no code knowledge I have no idea what I am really doing. Could you please advise how to invert the mobile logo just for the homepage too? Thank you in advance. 

Posted
4 hours ago, Jessssica said:

@tuanphan Thank you so much for your help!! I have managed to get it the right size but now can't figure out code to invert the logo colour on the mobile version. I took a few guesses but honestly with no code knowledge I have no idea what I am really doing. Could you please advise how to invert the mobile logo just for the homepage too? Thank you in advance. 

@media screen and (max-width:767px) {
.homepage .header-title-logo img {filter: invert(1);}
}

 

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!)

Posted
2 hours ago, tuanphan said:

@media screen and (max-width:767px) { .homepage .header-title-logo img {filter: invert(1);} }

Thanks Tuan, I don't know what I am doing wrong. I copied and pasted this in, and it appeared to work for a split second but now it doesn't. This is the whole code I have applied so far.... 

@media screen and (max-width:767px) {
.homepage .header-title-logo img {filter: invert(1);}
}
.header-title-logo img { max-height: 3000px; max-width: 500px; }
.homepage .header-title-logo img {filter: invert(1);}

Any clue where I went wrong? It still appears black on the mobile version. 

Posted
26 minutes ago, Jessssica said:

Thanks Tuan, I don't know what I am doing wrong. I copied and pasted this in, and it appeared to work for a split second but now it doesn't. This is the whole code I have applied so far.... 

@media screen and (max-width:767px) {
.homepage .header-title-logo img {filter: invert(1);}
}
.header-title-logo img { max-height: 3000px; max-width: 500px; }
.homepage .header-title-logo img {filter: invert(1);}

Any clue where I went wrong? It still appears black on the mobile version. 

Quote

@media screen and (max-width:767px) {
.homepage .header-title-logo img {filter: invert(1);}
}
.header-title-logo img { max-height: 3000px; max-width: 500px; }
.homepage .header-title-logo img {filter: invert(1);}

remove big }

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!)

Posted

Thank you so much for all your help Tuan! Honestly could have done it without you! 🙂 I managed to figure it out and get it all working for both versions how I wanted. 

 

@media screen and (min-width:992px) {

  .header-title-logo img { max-height: 3000px; max-width: 500px; } }

.homepage .header-title-logo img {filter: invert(1);}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.