Jump to content

Change size of code block

Recommended Posts

Posted

Site URL: https://rabbit-guppy-33ea.squarespace.com/

Hi

I have used a code block to insert an animated svg-icon on my home page. This is the code: 

<script src="https://cdn.lordicon.com/libs/frhvbuzj/lord-icon-2.0.2.js"></script>
<lord-icon
    src="https://cdn.lordicon.com/bnrooubi.json"
    trigger="loop"
    delay="5000"
    colors="primary:#3c3c3c,secondary:#dd7500"
    stroke="40"
    scale="25"
    style="width:300px;height:300px">
</lord-icon>

Below the Icon I have placed a text block to name it. However, the text block appears too far down. I want it right underneath the code block, but it is unnecessarily large. How can I reduce the heights of the code block. It should work for mobile and desktop.

Alternatively: Can I include the text in the code of the code block? That might be easier...

Thanks for your help

Bildschirmfoto 2021-08-17 um 13.28.19.png

  • Replies 1
  • Views 776
  • Created
  • Last Reply

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.