Jump to content

box around text

Recommended Posts

Site URL: https://www.muffyjdavis.com/2-weeks-2-destiny

Hi friends!
I have created a page for my site that needs a little formatting help. In my ideal world- each section would have a square around it on desktop. The square would be the same thickness on all sides. The squares would have more padding than they do now up top, and the squares would be the same size.
Here's the code:
//box border//
@media only screen and (min-width:641px){
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628 {border-left: 1px solid brown}
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628 {border-right: 1px solid brown}
}
@media only screen and (min-width:641px){
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628{border-top: 1px solid brown}
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628{border-bottom: 1px solid brown}
Link to comment
15 hours ago, muffy said:

Site URL: https://www.muffyjdavis.com/2-weeks-2-destiny

Hi friends!
I have created a page for my site that needs a little formatting help. In my ideal world- each section would have a square around it on desktop. The square would be the same thickness on all sides. The squares would have more padding than they do now up top, and the squares would be the same size.
Here's the code:
//box border//
@media only screen and (min-width:641px){
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628 {border-left: 1px solid brown}
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628 {border-right: 1px solid brown}
}
@media only screen and (min-width:641px){
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628{border-top: 1px solid brown}
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628{border-bottom: 1px solid brown}

Hi, try deleting the spacer blocks in between the columns and the css code above. Try this one instead:

15 hours ago, muffy said:

Site URL: https://www.muffyjdavis.com/2-weeks-2-destiny

Hi friends!
I have created a page for my site that needs a little formatting help. In my ideal world- each section would have a square around it on desktop. The square would be the same thickness on all sides. The squares would have more padding than they do now up top, and the squares would be the same size.
Here's the code:
//box border//
@media only screen and (min-width:641px){
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628 {border-left: 1px solid brown}
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628 {border-right: 1px solid brown}
}
@media only screen and (min-width:641px){
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628{border-top: 1px solid brown}
#block-yui_3_17_2_1_1645809882958_2713, #block-yui_3_17_2_1_1645810473216_7919, #block-yui_3_17_2_1_1645810473216_12628{border-bottom: 1px solid brown}

Hi, try removing the spacer blocks in between the columns and the css you added. Try the one below instead. Let me know how it goes 🙂

.sqs-col-12 {
  .sqs-row {
    display:flex;
    align-items: flex-start;
    justify-content: space-evenly;
  }
}

.sqs-col-4 {
  border: 1px solid brown;
  border-radius: 30px;
  padding: 30px 20px;
  max-width: 25%;
}

 

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment
  • 2 weeks later...

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.