Jump to content

How can I justify text in a section rather than a whole page/website? I am currently using the miller template

Recommended Posts

I have had to put in a Markdown block and add in code to make two sections into white text & centered.(they are on two different pages)

The rest of my website had a css code put in to justify all the text which I was fine with until I realized it affected my headings which I had to code in as mentioend above.

How can I get my body text to remain justified but at the same time have my markdown block also respond to the css code to keep it centered...

Markdown CSS used:


    < html>
   < head>
   < style>
   div.a {
     text-align: center;
     color: #ffffff
     style="color:#fff;font-family:ltc-bodoni-175;"
     font-size:3em

   }

   div.b {
     text-align: center;
     color: #ffffff
     style="color:#fff;font-family:nunito;"
     font-size:1em
   }

Get in touch
<p>Let's have a chat and see how we can best help you!</p>
</ div>

</ body>
</ html>

Custom CSS:


p {
  text-align: justify !important;
}

url: https://love-petsphotography.squarespace.compw: LovePets#1

Link to comment
  • Replies 3
  • Views 1.5k
  • Created
  • Last Reply

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.