Jump to content

Vertical line

Recommended Posts

  • Replies 20
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

/* Vertical Lines */
body.collection-64955a8c9a7f8c22f2faf6c3.view-item article section:first-child {
.fluid-engine, .content {
    position: relative;
}
.fluid-engine:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid white;
    border-right: 1px solid white;
}
.fluid-engine:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid white;
    border-left: 1px solid white;
}
.content:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    bottom: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-bottom: 1px solid white;
    border-right: 1px solid white;
}
.content:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    bottom: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
}}

image.thumb.png.7773fa6200e8da5f576806158355bc4a.png

image.thumb.png.601694ab130c64973a93e3fe6926896a.png

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

Link to comment
5 hours ago, J_rod said:

I added something 

Add to About, Contact Page Header (If you use Personal/Basic Plan, let me know, I will give another code)

<style>
  .fluid-engine, .content {
    position: relative;
}
.fluid-engine:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid white;
    border-right: 1px solid white;
}
.fluid-engine:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid white;
    border-left: 1px solid white;
}
.content:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    bottom: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-bottom: 1px solid white;
    border-right: 1px solid white;
}
.content:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    bottom: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
}
</style>

 

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

Link to comment

Use this new code

<style>
  article .fluid-engine, article .content {
    position: relative;
}
article .fluid-engine:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid white;
    border-right: 1px solid white;
}
article .fluid-engine:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid white;
    border-left: 1px solid white;
}
article .content:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    bottom: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-bottom: 1px solid white;
    border-right: 1px solid white;
}
article .content:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    bottom: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
}
</style>

 

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

Link to comment

Hi,

Is it possible to add the frames to the top of the page on the home page? Right now its just on the bottom.

I just noticed the frame is on the all the pages.  Do all of the codes need to put inputed?

Thank you

Screenshot 2023-08-04 at 11.14.15 PM.png

Screenshot 2023-08-05 at 3.52.02 PM.png

Screenshot 2023-08-05 at 3.52.08 PM.png

Edited by J_rod
Link to comment
On 8/3/2023 at 1:57 AM, J_rod said:

Thank you, it worked.

Is it possible to add text below the line?

Frame around image.png

Each item will have a different text or same text?

And all text will have same format, left is a text, right is a text, like your screenshot, right?

https://www.jennyrodriguez.design/portfolio-2/project-one-ephnc-nltr7

With homepage, use this code to Design > Custom CSS

/* Top Vertical Line on Homepage */
div#gridThumbs:before {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    right: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff
}

div#gridThumbs:after {
    content: "";
    height: 200px;
    width: 200px;
    position: absolute;
    top: 0;
    left: 3vw;
    z-index: 999999;
    background-color: transparent;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff
}

image.thumb.png.664be4bde522f9872dae33080ea738e5.png

 

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

Link to comment
On 8/7/2023 at 2:52 AM, J_rod said:

The code worked. Thank you 🙂

 

For the text it is like the screenshot, but each project has a different text. 

You can edit each project item > Add a Code Block (anywhere on page) > Use this code

<style>
  article section:first-child .content-wrapper:after, article section:first-child .content-wrapper:before {
    content: "enter text 1";
    position: absolute;
    bottom: 50px;
    color: white;
    left: 3vw;
    z-index: 999999;
}
article section:first-child .content-wrapper:before {
    content: "enter second text";
    right: 3vw;
    left: unset;
}
</style>

image.thumb.png.73325a8b1f397753f3a13a455610080b.png

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

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.