Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

CSS Site Navigation Header & Title Header Help


Amanihime

Question

Site URL: https://spoonfulofsugarent.squarespace.com/

Hello!

I'm looking for some help, I've been tweaking this site for about a week and there's some last touches I want to make to the home page that I can't seem to figure out!

I'll list my issues in order of priority-

1) I'm trying to get the font of the title header to adjust to 1.0 or 1.2rem for the mobile layout to stop it from being monstrous on the phone. there's been a couple of different codes I've looked up and tried to plug in but the site isn't responding to any of them. I left the last one I tried you can see in the code box below

2) same as 1, but to make the full-bleed background fit the phone width. I'm not sure if this is connected to the font sizing or requires a different code.

3) The site navigation header I'm trying to figure out if I can make the background semi-transparent, OR if there's a way for me to give the text either a glow, shadow or stroke effect for it to pop out from the background photo. I managed to get it the glow font for the title header, but it's not working the same for the site header. 

 

 (ignore the colors on the site, it's mostly to help my brain compute what is going on 🤣) the block of coding I have in my CSS section is below for reference. Thank you in advance!

 

<style>

{{
.header{
  	font-size: 180px;
    letter-spacing: 5px;
    -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: hsl(51, 80%, 35%);
  text-align: center;
    text-shadow: 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff, 0 0 25px #fff, 0 0 30px #fff, 0 0 35px #ff4da6, 0 0 40px #ff4da6;}

     h2 {
  	font-size: 95px;
  }
  
 @media screen and (max-width:640px) {
  #site-title { 
    font-size: 1.2rem;   
  } 
   {
  #h1 { 
    font-size: 1.2rem;   
  } 
}  

</style>

 

Edited by Amanihime
Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

2 answers to this question

Recommended Posts

  • 0
On 10/15/2021 at 9:24 PM, Amanihime said:

Site URL: https://spoonfulofsugarent.squarespace.com/

Hello!

I'm looking for some help, I've been tweaking this site for about a week and there's some last touches I want to make to the home page that I can't seem to figure out!

I'll list my issues in order of priority-

1) I'm trying to get the font of the title header to adjust to 1.0 or 1.2rem for the mobile layout to stop it from being monstrous on the phone. there's been a couple of different codes I've looked up and tried to plug in but the site isn't responding to any of them. I left the last one I tried you can see in the code box below

2) same as 1, but to make the full-bleed background fit the phone width. I'm not sure if this is connected to the font sizing or requires a different code.

3) The site navigation header I'm trying to figure out if I can make the background semi-transparent, OR if there's a way for me to give the text either a glow, shadow or stroke effect for it to pop out from the background photo. I managed to get it the glow font for the title header, but it's not working the same for the site header. 

 

 (ignore the colors on the site, it's mostly to help my brain compute what is going on 🤣) the block of coding I have in my CSS section is below for reference. Thank you in advance!

 

<style>

{{
.header{
  	font-size: 180px;
    letter-spacing: 5px;
    -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: hsl(51, 80%, 35%);
  text-align: center;
    text-shadow: 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff, 0 0 25px #fff, 0 0 30px #fff, 0 0 35px #ff4da6, 0 0 40px #ff4da6;}

     h2 {
  	font-size: 95px;
  }
  
 @media screen and (max-width:640px) {
  #site-title { 
    font-size: 1.2rem;   
  } 
   {
  #h1 { 
    font-size: 1.2rem;   
  } 
}  

</style>

 

Look like that you are getting some issues in mobile display, here is some of my suggestions 

Add to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  	/*style h1*/
	section[data-section-id="615a86b97d20d35062ff5be4"]  .content-wrapper .content h1 {
      font-size: 1.2rem;
    }
  	/*style img*/
    section[data-section-id="615a86b97d20d35062ff5be4"]  .section-background img{
      object-fit: contain !important;
      margin-top: 82px;
    }
}

Support me by pressing 👍 if this useful for you

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0

My testing result

image.png.38aafeb27517384b960326da8407949d.png

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Youtube Gallery for Squarespace
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

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


×
×
  • Create New...