Jump to content

Custom Table Of Contents Box

Recommended Posts

Site URL: https://www.joshuaschweigert.com/about-me

Hello,

I need help adding a 2px black border to surround my table of contents box on my website. Any assistance would be greatly appreciated! This is the code I have so far;

// Table Of Contents Block Coding //
.table-of-contents {
    display: block;
    background-color: #4FD5D6;
    padding: 22px;
    margin: 0 0 1em /*1em*/;
    min-width: 30%;
    /*max-width: 60%;*/
}

.toc-title {
    display: block;
    margin-top: 0;
    margin-bottom: 1em;
    border-top: none;
    padding-top: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1em;
    color: #444;
}

.toc-links {
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    color: #b8b8b8;
    margin-bottom: 0;
    padding: 0;
    font-weight: 500;
    font-size: 16px;
}

.toc-links li {
    line-height: 1.4em;
    padding-bottom: 0.6em;
    margin-left: 0;
}

.toc-links a {
    text-decoration: none;
    color: #000000;
}

Thank you for your help,

Joshua Schweigert

Link to comment
3 hours ago, thejschweigert said:

Site URL: https://www.joshuaschweigert.com/about-me

Hello,

I need help adding a 2px black border to surround my table of contents box on my website. Any assistance would be greatly appreciated! This is the code I have so far;

// Table Of Contents Block Coding //
.table-of-contents {
    display: block;
    background-color: #4FD5D6;
    padding: 22px;
    margin: 0 0 1em /*1em*/;
    min-width: 30%;
    /*max-width: 60%;*/
}

.toc-title {
    display: block;
    margin-top: 0;
    margin-bottom: 1em;
    border-top: none;
    padding-top: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1em;
    color: #444;
}

.toc-links {
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    color: #b8b8b8;
    margin-bottom: 0;
    padding: 0;
    font-weight: 500;
    font-size: 16px;
}

.toc-links li {
    line-height: 1.4em;
    padding-bottom: 0.6em;
    margin-left: 0;
}

.toc-links a {
    text-decoration: none;
    color: #000000;
}

Thank you for your help,

Joshua Schweigert

try

.table-of-contents {
    border: 2px solid black;
}

image.thumb.png.f7e5c00f04c077d9dc06ea2ca58a0f2e.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.