newbie1892 Posted November 26, 2020 Share Posted November 26, 2020 Hello I am curious the best way to make a sentence with a different font size than the normal body text size, and with another part of the sentence in a different color, like gray - Do i add a code block? seems like an easy thing yet I have looked around a lot and not quite finding the simple answer. Also other text on the page using all the different template given text in text blocks. Thanks Link to comment
CarlJ Posted November 29, 2020 Share Posted November 29, 2020 Hi @newbie1892 Yes, a Code Block is the way to go. By default, any text you put into a Code Block will take the site-wide paragraph style, but you can override this by wrapping the text you want to change with span tags, like so: <span style="font-size: 20px; color: #898989;"> Your Text Here </span> You can change the font size and colour to your liking. Also important to mention that when you're entering text in a Code Block you need to put in line breaks manually. To do that you put br tags where you want the lines to break, like this: <span style="font-size: 20px; color: #898989;"> Paragraph 1 <br> <br> Paragraph 2 </span> Subscribe for Squarespace Tutorials 👉 https://www.youtube.com/mrjohnocp Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment