thesoulfulentrepreneur Posted June 3, 2021 Share Posted June 3, 2021 Site URL: https://www.leadwithbliss.squarespace.com Hi! I'm working on the following website: www.leadwithbliss.squarespace.com Password: leadwithbliss I'm trying to add a full-height, vertical line within a section to achieve this look: So far, I have added the following code: Code Block: <div class="vl"></div> CSS: .vl { border-right: 1px solid #000000; height: 800px; position: absolute; left: 110%; } However, I'm stuck and cannot get the line to go to the top of the section: Any suggestions? Thanks in advance for your help! Link to comment
Solution tuanphan Posted June 4, 2021 Solution Share Posted June 4, 2021 The section has a default padding, you need to remove it first Use this CSS [data-section-id="60b7da3b1094591797b804b0"] .content-wrapper { padding-top: 0 !important; } 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
thesoulfulentrepreneur Posted June 4, 2021 Author Share Posted June 4, 2021 @tuanphan ohhhh wow it was that simple. got it! thank you so much. Link to comment
Guest Posted July 24, 2021 Share Posted July 24, 2021 I'm also experiencing the same problem. I know nothing about css. I got to this point on my page by following code by @tuanphanand developers on Youtube. Any help will be appreciated. even with the remove padding codes the line wont move up. Link to comment
Guest Posted July 24, 2021 Share Posted July 24, 2021 Thank you. also, this section is a split section. could that be causing the issue? Link to comment
creedon Posted July 24, 2021 Share Posted July 24, 2021 @chiskoprapunzel Please post the URL for your site. If your site is not public please set up a site-wide password, if you've not already done so. Post the password here. Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works. We can then take a look at your issue. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
thesoulfulentrepreneur Posted August 24, 2021 Author Share Posted August 24, 2021 @tuanphan back with a follow-up question. do you have any idea why the vertical line in the 'my approach' section of the 'coaching' page does not appear in the same position as the 'conscious coaching' section on the home page? I suspect it's because the structure of the elements in the block is different than all of the other sections I have added the vertical line to so where I added the code in the block is different. However, I figured I'd ask in case you have any comments. Is the only way to make the position match to add custom code for this section? The URL and pass have remained the same. The code I have added for this is: Code Block: <div class="vl-right"></div> CSS: .vl-right { border-right: 1px solid #000000; height: 800px; position: absolute; left: 110%; } [data-section-id="60d0e85e724ba127a9a08e7b"] .content-wrapper { padding-top: 0 !important; } Thanks in advance! Link to comment
tuanphan Posted August 26, 2021 Share Posted August 26, 2021 On 8/24/2021 at 7:11 AM, stellaehabib said: @tuanphan back with a follow-up question. do you have any idea why the vertical line in the 'my approach' section of the 'coaching' page does not appear in the same position as the 'conscious coaching' section on the home page? I suspect it's because the structure of the elements in the block is different than all of the other sections I have added the vertical line to so where I added the code in the block is different. However, I figured I'd ask in case you have any comments. Is the only way to make the position match to add custom code for this section? The URL and pass have remained the same. The code I have added for this is: Code Block: <div class="vl-right"></div> CSS: .vl-right { border-right: 1px solid #000000; height: 800px; position: absolute; left: 110%; } [data-section-id="60d0e85e724ba127a9a08e7b"] .content-wrapper { padding-top: 0 !important; } Thanks in advance! Can you share link to page where you have problem? 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
thesoulfulentrepreneur Posted August 26, 2021 Author Share Posted August 26, 2021 @tuanphan yes, this occurs on the home (www.leadwithbliss.com) and coaching (www.leadwithbliss.com/coaching) pages (pass: leadwithbliss). You'll notice that the left/right vertical lines vary in position depending upon the section that they are in. Thanks 🙂 Link to comment
tuanphan Posted August 30, 2021 Share Posted August 30, 2021 On 8/27/2021 at 4:34 AM, stellaehabib said: @tuanphan yes, this occurs on the home (www.leadwithbliss.com) and coaching (www.leadwithbliss.com/coaching) pages (pass: leadwithbliss). You'll notice that the left/right vertical lines vary in position depending upon the section that they are in. Thanks 🙂 Hi, Try adding a Line Block here (line width = text width) next, add a Code Block under >> add vl code Next, remove Line Block & check again creedon 1 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
thesoulfulentrepreneur Posted September 22, 2021 Author Share Posted September 22, 2021 @tuanphan my apologies for the delayed response. i tried this but, unfortunately it did not work. Please refer to the screenshot. I now have 3 columns in the design, rather than 2, so I'm not sure if that's influencing the result? Link to comment
JazLewis28 Posted August 8, 2022 Share Posted August 8, 2022 Hi there! @tuanphan @stellaehabib I am wanting to put a vertical line in the centre of one of my sections too. Like this: (this is just a mockup) and I stumbled across this code however the line isn't fixed on the section and moves when change the size of the screen. Can anyone help? and on mobile it doesn't work? Link to comment
tuanphan Posted August 10, 2022 Share Posted August 10, 2022 On 8/8/2022 at 9:39 PM, JazLewis28 said: Hi there! @tuanphan @stellaehabib I am wanting to put a vertical line in the centre of one of my sections too. Like this: (this is just a mockup) and I stumbled across this code however the line isn't fixed on the section and moves when change the size of the screen. Can anyone help? and on mobile it doesn't work? Can you share link to your site? I think we can use code to add a left or right border 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
JazLewis28 Posted August 16, 2022 Share Posted August 16, 2022 (edited) @tuanphan Thank you! The line attaches to the bottom section when the screen is at a normal size but when i expand to fit a bigger screen the line no longer attaches. This is the code i used: .vl-centre { background: #000000; width: 1px; height: 760px; margin: 0 auto; } @media screen and (max-width: 640px) { .vl-centre { display:none } } Of course, it's bamboo-fiddle-xxx4.squarespace.com Password: JL19934439! Thanks, Jaz Edited August 16, 2022 by JazLewis28 Link to comment
tuanphan Posted August 18, 2022 Share Posted August 18, 2022 On 8/17/2022 at 12:46 AM, JazLewis28 said: @tuanphan Thank you! The line attaches to the bottom section when the screen is at a normal size but when i expand to fit a bigger screen the line no longer attaches. This is the code i used: .vl-centre { background: #000000; width: 1px; height: 760px; margin: 0 auto; } @media screen and (max-width: 640px) { .vl-centre { display:none } } Of course, it's bamboo-fiddle-xxx4.squarespace.com Password: JL19934439! Thanks, Jaz You mean it has this space? 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
JazLewis28 Posted August 18, 2022 Share Posted August 18, 2022 @tuanphan Yeah it makes this space when you make the web browser bigger. It doesn't seem to render with different screen sizes Link to comment
tuanphan Posted August 21, 2022 Share Posted August 21, 2022 On 8/18/2022 at 8:52 PM, JazLewis28 said: @tuanphan Yeah it makes this space when you make the web browser bigger. It doesn't seem to render with different screen sizes The site is expired. You can access this link to extend trial 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
JazLewis28 Posted August 22, 2022 Share Posted August 22, 2022 @tuanphanThanks for the link! I have extended my website now 🙂 Link to comment
tuanphan Posted August 24, 2022 Share Posted August 24, 2022 On 8/22/2022 at 4:09 PM, JazLewis28 said: @tuanphanThanks for the link! I have extended my website now 🙂 It looks like you will need to increase height value in some screen sizes (screen sizes where you have problem) You can add some code like this @media screen and (min-width:1350px) and (max-width:1700px) { .vl-centre { height: 1000px; } } this code will run from 1350 to 1700px screen (Just an example, you can adjust these values) 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
robienhali Posted Monday at 09:42 AM Share Posted Monday at 09:42 AM Hi! I'm playing with a website for a client and I have a similar issue as the ones above. This is the url: https://geboortecentrum-baarn.squarespace.com/verloop-zwangerschap (everything is in Dutch) and the password: landkroon. I am wondering if I can make the vertical line the top section responsive with the height of the section? I know it's too long now because of the code, of course I can make it smaller, but I want it to move with the section, I want it to be responsive whatever the size of the screen is. It doesn't need to be shown on mobile (already in the code). This is the code I used in the codeblock: <div class="vertical-line"></div> and this I put in the Custom CSS: / //vertical line/// @media screen and (min-width: 768px) { .vertical-line { background: #474747; width: 1px; height: 3670px; margin: 0 auto; } } Hope you can help! Thanks so much 🙂 Link to comment
tuanphan Posted Thursday at 08:21 AM Share Posted Thursday at 08:21 AM On 4/15/2024 at 4:42 PM, robienhali said: Hi! I'm playing with a website for a client and I have a similar issue as the ones above. This is the url: https://geboortecentrum-baarn.squarespace.com/verloop-zwangerschap (everything is in Dutch) and the password: landkroon. I am wondering if I can make the vertical line the top section responsive with the height of the section? I know it's too long now because of the code, of course I can make it smaller, but I want it to move with the section, I want it to be responsive whatever the size of the screen is. It doesn't need to be shown on mobile (already in the code). This is the code I used in the codeblock: <div class="vertical-line"></div> and this I put in the Custom CSS: / //vertical line/// @media screen and (min-width: 768px) { .vertical-line { background: #474747; width: 1px; height: 3670px; margin: 0 auto; } } Hope you can help! Thanks so much 🙂 I checked some screen sizes and I see it is fine. Or you mean remove white space between lines? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment