increase underline margin - Forum | JoomShaper
Staff replied SP Page Builder

increase underline margin

Asked by Dina Abramson 1 year ago Last activity 1 year ago

at https://www.paulabacks.ca how would I increase the margin between the menu item or article headings and the line underneath?
I would also like to make the line heavier than what it is.
Thanks

7 replies

Paul Frankowski Senior Staff
1 year ago · edited

Hi Dina,

please make screenshot - add arrows or other graphic marks and then share link to that image. It will be easier to understand your question. Thanks.

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Could you please give me a screenshot of your issue? Its easy for us to investigate the issue properly.

-Regards.

Paul Frankowski Senior Staff
1 year ago · edited

If we talk about MainMenu in Joomla site,

  1. Remove text-decoration: underline; that you added in Custom CSS for menu items.

  2. The same if you set line-height: 140px remove it.

  3. Then use that Custom CSS

.sp-megamenu-parent > li.active > a::before {border-bottom: 2px solid;}
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span { line-height: 20px;}

info_3189_2025.gif

Then (if yoou need) use also

.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
  padding: 0; margin: 0 10px;}
to get shorter lines

info_3191_2025.gif

Paul Frankowski Senior Staff
1 year ago · edited

If we talk about Headers titles, as well. Do not use text-decoration: underline; becuase since beginning of CSS it just add line under the text, no options to control that.

You have to use the same CSS that you used on orginal site,
info_3190_2025.gif

only for different class name:

h3.sppb-title-heading::after,
h4.sppb-title-heading::after   { ADD-HERE } 
h3.sppb-title-heading,
h4.sppb-title-heading   { ADD-HERE } 

Copy, paste & customize. We cannot be CSS teachers each time, it's against Support Policy 8.2.

Mehtaz Afsana Borsha Staff

Hi Dina,

You can follow Paul's instructions. Thanks Paul for helping him.

Log in to reply.