Jump to content

Heading 1 Gradient - cut-off text - css

Recommended Posts

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

Hello there, I am using the following code to target certain h1's to turn into gradient text...

//heading 1 gradient//
#block-yui_3_17_2_1_1637561652735_9183
h1 {
background: -webkit-linear-gradient(45deg, #5b86e5, #36d1dc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

site password is: MVLF

My issue being that the gradient is not filling the entire word. See screenshots of cut-off text...

Please help and thank you

Screen Shot 2021-11-23 at 9.28.08 am.png

Screen Shot 2021-11-23 at 9.28.20 am.png

Edited by earthwindflowermoon
Link to comment
  • Replies 4
  • Views 968
  • Created
  • Last Reply

Top Posters In This Topic

20 hours ago, earthwindflowermoon said:

Thank you, it worked great on desktop view.

How do I fix this for mobile view? 

Screen Shot 2021-11-24 at 4.22.19 pm.png

Use this for mobile

@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1637561652735_9183 h1 {
    display: block;
    min-height: 90px;
}
}

 

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

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

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.