Jump to content

Justify Text for entire website for all browsers

Recommended Posts

Site URL: https://www.nicknytz.com

Hi, 

I have been scouring through the forums and the internet and I have not found a solution to justify text on your website that works for all browsers.  Before I rebuild my website, I used the custom code CC and injected additional code for each page--code included below:

Custom CSS

justify text

div

{

  text-align: justify;

}

 

Injected code for each page

<style>

div {

    text-align:justify;

}

</style>

 

After I rebuilt my website, I used the code that I have been using for years but now it does not work for all browsers--as the time of writing this.  The code only works on the chrome browser.  I have tried other methods with no avail. The  template i am using is Montauk  on version Squarespace 7.0. 

Thank you for your help!

Happy Holidays!

Stay Safe!

Nicholas

 

Link to comment
  • Replies 3
  • Views 468
  • Created
  • Last Reply
  • 1 month later...

Hello, I would like to justify only one page so i put this:

Injected code for each page

<style>

div {

    text-align:justify;

}

</style>

and replace div by p.

It is working but they also justify my announcement bar and i would like keep it in the center. Do you have a solutions ?

Thank you

Link to comment
On 1/10/2021 at 6:25 PM, Prismaze said:

Hello, I would like to justify only one page so i put this:

Injected code for each page

<style>

div {

    text-align:justify;

}

</style>

and replace div by p.

It is working but they also justify my announcement bar and i would like keep it in the center. Do you have a solutions ?

Thank you

Can you share site url? We can check easier.

If you use SS 7.1, change div to #page div

 

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.