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

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

Question

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

Edited by Paul2009

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

past this code in custom css box


p:last-child {
   text-align: justify;
}



Hi, I'm BITTU. A website developer with 8 years experience with Squarespace. if you need help and work with me email me here :- mandeepsquarespace@gmail.com Best Hourly Rate :- $15 Per Hour

Share this post


Link to post
  • 0

ok let me check


Hi, I'm BITTU. A website developer with 8 years experience with Squarespace. if you need help and work with me email me here :- mandeepsquarespace@gmail.com Best Hourly Rate :- $15 Per Hour

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...