Archived topic
White spaces in between the horizontal line
11 replies · Started by Mehedi on November 19, 2020
I need some help. I want to remove the extra space from the top and bottom after using a horizontal line.
https://drive.google.com/file/d/1ilNDENFqBF-f_crURw1RbAAZkuPEmZ-R/view?usp=sharing this is the screenshot in generatepress theme and https://drive.google.com/file/d/1vLhJHd7k_xCg7tKYTg1erLAMCWSZjbn6/view?usp=sharing this is the screenshot I need to have.
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
The site is in development mode and we didn't publish any content yet but this problem is universal for the generatepress theme after using the horizontal line. The site we want to use for this is - http://www.appsworm.com and want to follow - https://www.ubuntupit.com/how-to-install-and-configure-mautic-marketing-automation-tool-on-linux/
Try this CSS:
hr {
margin-top: 10px;
margin-bottom: 20px;
background-color: #000;
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Just adjust the px number as you see fit.
https://prnt.sc/vmktbh used but doesn't work. I made the px 0 but still no luck
I tested the code and it worked.
I will need to see the live site with the code added in order to determine the issue unfortunately.
Now the code is used and the link is live. https://www.appsworm.com/best-notes-apps-for-ipad-and-iphone/
I want this - https://prnt.sc/vpuhxo
but getting this on generate press theme - https://prnt.sc/vpug0i
Hi there,
i edited Leo's code here:
https://generatepress.com/forums/topic/white-spaces-in-between-the-horizontal-line/#post-1538400
It now includes the background color - changed to solid black.
Hello David, I am not concern about the background color. Can you see there are distinct spaces on top of the line and bottom of the line? I just want to reduce the white space just like the sample one - https://prnt.sc/vpuhxo
Just adjusted Leos CSS here:
https://generatepress.com/forums/topic/white-spaces-in-between-the-horizontal-line/#post-1538400
Thanks. It's working now.
Glad to hear that