Jump to content

Headline line breaks for mobile

Recommended Posts

  • Replies 1
  • Views 384
  • Created
  • Last Reply

Use Code Block, enter this code

<h2 class="ttext"><span>Empowering</span><span>sustainable,</span><span> all-electric</span><span> new housing</span><span> communities by</span><span> intelligently</span><span> harnessing their</span><span> collective energy</span></h2>
<style>
  @media screen and (max-width:767px) {
  h2.ttext span {
    display: block;
    text-align: center;
}
  }
</style>

 

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

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.