Horizontal Rule

Permalink 1 user found helpful
If I add a horizontal rule to a layout, it takes like an inch of vertical space. How do I fix that?

rrosskopf
 
Gondwana replied on at Permalink Reply
Gondwana
I noticed this too. It provides 80px margin above and below. You can remove 50 of that via 'Design & Custom Template', 'Margin and Padding', and set top and btm margins to -50.
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi rrosskopf,

The CSS for the hr element will depend on the theme you are using or the default browser style.

If you are using the default Elemental theme, you can edit the theme CSS or override the CSS using Custom CSS.

Using Custom CSS:
Toolbar > Page Settings (gear icon) > Design > Theme > Customize > Custom CSS gear icon button
- this is the selector and default margin values from the theme
- you can add this into the Custom CSS and change the margin values to your preference
div.ccm-page hr {
    margin-top: 80px;
    margin-bottom: 80px;
}
rrosskopf replied on at Permalink Reply
rrosskopf
Worked like a charm! Thank you.
brisseo replied on at Permalink Reply
brisseo
Hi!
I wonder if you can add your own image into the horizontal rule?

If you can, I wonder if you have some code for it?

If you do, it would be greatly appreciated as I'm trying to add a full bar across the top just under the header with an image.. but I just can't seem to work it out.

Thanks in advance.
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi brisseo,

I don't believe the hr element supports images.

To get a better idea of what you are looking to do, I recommend replying with a screenshot or mockup of the idea.