- This topic has 13 replies, 2 voices, and was last updated 3 years, 9 months ago by
Leo.
-
AuthorPosts
-
August 14, 2018 at 11:24 am #648127
Jesus Higuerey
Hi,
I’ve added a button on a hook. Specifically on the front page.The thing is, I want to add sort of a divider between that button and the next post.
I’ve added the following code:
.inside-article{ border-bottom: 1px solid #e3e3e3; }
But it just looks like this: http://prntscr.com/kils45
How can I make it so it doesn’t overlap the button?
GeneratePress 2.1.3August 14, 2018 at 6:34 pm #648533Leo
StaffCustomer SupportHi there,
Looks like you’ve fixed this?
I’m not seeing the overlapping:
https://www.screencast.com/t/sneJ4kcFfRhLet me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 15, 2018 at 7:56 am #649297Jesus Higuerey
Sort of but I want it underneath the hook
August 15, 2018 at 11:24 am #649593Leo
StaffCustomer SupportI’m a bit confused. So you want it to be underneath the comment button?
If so why not just add the bottom after that?
Let me know if I’m missing something.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 15, 2018 at 1:22 pm #649720Jesus Higuerey
The button is a hook and the “line or separator” is css. And yes I want it underneath the button
August 15, 2018 at 5:50 pm #649969Leo
StaffCustomer SupportWhat if you do something like this in hooks:
<div class="button-section"> button here </div>
With this some CSS:
.button-section { border-bottom: 1px solid #000; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 15, 2018 at 8:14 pm #650056Jesus Higuerey
It kinda looks the same, but now the line is shorter.
August 16, 2018 at 8:44 am #650764Leo
StaffCustomer SupportAre you able to show me the look you are going for?
Your comment button is using background image which is making it difficult.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 16, 2018 at 10:24 am #650918Jesus Higuerey
August 16, 2018 at 11:51 am #651015Leo
StaffCustomer SupportWhich hook are you using?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 16, 2018 at 12:07 pm #651036Jesus Higuerey
after_content
August 16, 2018 at 6:27 pm #651285Leo
StaffCustomer SupportMaybe try this for your overall CSS:
.inside-article { border-bottom: 1px solid #000; } .button-section { height: 40px; }
Not sure where you got the button code from but ideally it should has a height property on it so we don’t have to set it. Currently it’s using background image so the height is basically 0.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 17, 2018 at 10:53 am #652083Jesus Higuerey
That kinda works thanks.
August 17, 2018 at 11:02 am #652096Leo
StaffCustomer SupportNo problem ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.