Jump to content

HELP A NOVICE: Simple, yet broken code

Go to solution Solved by creedon,

Recommended Posts

I've added two extremely basic code blocks (see below) to one page of my website; however, there appears to be an issue with them because that page has incorrect backgrounds and colors as a result.

When I disable scripts, the background and color issues are resolved. 

I'm an extreme novice in html and css code, but my understanding is there must be something wrong with the code block.

Attached is a screenshot showing the incorrect background (theme = Dark 1; actual color = white) and here are the two code blocks that appear to be causing the issue:

 

 <h3><em>Imagine life with less 
    <div class="fadeIn">
      <span><strong>anxiety</strong></span>
      <span><strong>depression</strong></span>
      <span><strong>stress</strong></span>
      <span><strong>fear</strong></span>
    </div>
  </h3>

 

 <h3><em>Live with
    <div class="fadeIn">
      <span><strong>joy</strong></span>
      <span><strong>wholeness</strong></span>
      <span><strong>purpose</strong></span>
      <span><strong>connection</strong></span>
    </div>
  </h3>

 

Any help is appreciated!

Screen Shot 2023-09-12 at 1.41.34 PM.png

Edited by SilverSurferSixty
Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

One thing I can see right off is your <em> tag is not closed. It should be closed with </em>

This is a syntax error and can cause rendering issues.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.