Jump to content

How do I format select words in italics and bold using CSS?

Recommended Posts

Site URL: https://www.tangentbooks.co.uk/tangfest

Please help!

I used code injection to put some text at the top of our new products page. Please see first two pictures.

However, I cannot figure out how to make certain words bold, in italics and how to put in paragraph breaks. Spent all of yesterday trying to figure it out and got no luck. Someone please help! See picture 3 for an example of how I want the text to appear.

Also it would be great to get our festival logo in there at the top as well. If someone could also tell me how to add an image to the top of this page using code injection, that would be amazing.

Screenshot 2021-09-16 at 10.37.33.png

Screenshot 2021-09-16 at 10.37.55.png

Screenshot 2021-09-16 at 10.38.09.png

Link to comment
  • Replies 1
  • Views 738
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images


Remove your code & use this code

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
  $(document).ready(function() { 
		$('<p class="t-text"><strong>Tangent Books</strong> is excited to bring you TangFest: The Shortest Literature Festival In The World <em>probably</em> in October from Friday 22nd to Saturday 23rd, 2021.<br/> Our events range from a film screening to a writing workshop to talks from authors to live poetry and music!<br/> Find tickets for all events below. Come along and enjoy TangFest!</p>').insertBefore('#productList');
  p.t-text {
    text-align: center;
    color: black;
    font-size: 20px;
    margin-bottom: 50px;
  main#page {
    padding-left: 0;
    padding-right: 0;


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

Create an account or sign in to comment

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

  • 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.