Jump to content

7.1 Add vertical line full height (100%)

Recommended Posts

Posted (edited)

Site URL: https://gar-grouper-xgll.squarespace.com/config/pages

Hello everyone,

I would like the vertical line to have the same height like the nav links on the right. The number of sub categories changes so should the line height.

Unfortunately, as soon as I change the height from "pt" to "%" the line disappears.

Hope you can help me with this issue.

.vertical-line {
  height: 100%; /* line height */
  width: 1px; /* line width */
  background: #a8a6a1; /*line colour*/
  margin-right: 10px;
  margin-left: 10px;
}

 

vertical line.JPG

Edited by ando_337
  • Replies 5
  • Views 958
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 10/8/2022 at 7:20 AM, ando_337 said:

Site URL: https://gar-grouper-xgll.squarespace.com/neue-seite-3

Hello everyone,

I would like the vertical line to have the same height like the nav links on the right. The number of sub categories changes so should the line height.

Unfortunately, as soon as I change the height from "pt" to "%" the line disappears.

Hope you can help me with this issue.

.vertical-line {
  height: 100%; /* line height */
  width: 1px; /* line width */
  background: #a8a6a1; /*line colour*/
  margin-right: 10px;
  margin-left: 10px;
}

 

vertical line.JPG

Can you check the link again? I can not access it now

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
On 10/10/2022 at 2:29 AM, ando_337 said:

Which page are you referring to? /config is admin url

https://gar-grouper-xgll.squarespace.com/?noredirect

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!)

Posted
On 10/18/2022 at 3:53 AM, ando_337 said:

You try using this CSS code (Design > Custom CSS) to add line

@media screen and (min-width:768px) {
div#page-section-632ef01c3056c01d0d67996c .span-5 {
    border-left: 1px solid gray;
    margin-left: -1px;
}
}

 

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!)

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.