x

How do you edit Divider size and color?

From what I can see, the only options for editing a Divider are changing the width and margins. Is there any way to edit the vertical height and color of the dividing bar?

38,768 Views
Message 1 of 18
Report
1 Best Answer

Best Answer

Use this HTML code (place Embed Code element where you want the divider line to be)

<div id="divider" style="background-color:#441468; height: 5px; width:100%;"></div>

Substitute the hex color code shown here with a color you want.

View Best Answer >

38,631 Views
Message 18 of 18
Report
17 REPLIES 17

@abeljq:  You can do that via editing the css file or just create an image of the dider and stick it in.

38,757 Views
Message 4 of 18
Report

That's ridiculous

38,716 Views
Message 4 of 18
Report

Best Answer

Use this HTML code (place Embed Code element where you want the divider line to be)

<div id="divider" style="background-color:#441468; height: 5px; width:100%;"></div>

Substitute the hex color code shown here with a color you want.

38,632 Views
Message 18 of 18
Report

Excelent

Thanks a lot for your tip!

38,570 Views
Message 18 of 18
Report

Editing custom code is just Perfect! Thanks so much, Clint 🙂

37,457 Views
Message 18 of 18
Report

Why is this not as simple as editing text color. Absurd to have to edit code in a platform like Weebly.
37,092 Views
Message 18 of 18
Report

Thank you very much Clint! Helped perfectly!!!!

36,649 Views
Message 18 of 18
Report

Ok so I have two sites, I went into the CSS file and changed the color on both. One changed the other did not, the only difference was one was a light version of the theme, the other a dark version. The light one I had to edit the CSS anyway to make it dark (wanted the particular color) so tried editting the line color. Any reason why one worked the other didn't.

35,901 Views
Message 18 of 18
Report

Where do you find it in CSS?

I don't see any style_hr in my CSS code.

If it is not in there, where and what do I add to make all divider lines on my site change color and thickness?

Thanks in advance.

35,071 Views
Message 18 of 18
Report

you  add the code as embed element.   drag that element to the page  past the code provided

6,969 Views
Message 18 of 18
Report


@RusticOldGal wrote:

Where do you find it in CSS?

I don't see any style_hr in my CSS code.

If it is not in there, where and what do I add to make all divider lines on my site change color and thickness?

Thanks in advance.


I couldn't find it either so i just added this at the bottom of the header.html file where all my other overrides are. To make it thicker just change the 1px to however many px you want. To change the color just replace the #ddd part in both border and background color to the color code of your choice. If you want to change the width but you don't want it to be centered you can use the float:left or float:right line.

<style>
.styled-hr{
float:left !important;
border: 1px solid #ddd !important;
background-color: #ddd !important;
}</style>

6,921 Views
Message 18 of 18
Report

This worked a treat! Thanks a lot!!

4,613 Views
Message 18 of 18
Report
Square Community Moderator

Glad you found a solution here, @MarijkeD - feel free to reach out if anything else comes up!

Joe
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
4,594 Views
Message 18 of 18
Report

How do you change the top and bottom margins using that technique?

6,526 Views
Message 18 of 18
Report
Square

Which technique are you referring to, @weebly2? There's quite a few comments on this thread. Thanks! 

6,523 Views
Message 18 of 18
Report

This is excellent advice - thank you.
5,899 Views
Message 18 of 18
Report
Square

I'm not sure what the reason would be, but there are users on here that may be able to help. Smiley Happy Can you please post the site name and code that was changed? Thanks! 

7,795 Views
Message 19 of 18
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.