Button centered on heather

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jun 12, 2013 4:39 pm
Reply with quote
Report this post
I want to center a button on the header and I used <div class="gkButtonArea"><a class="gkCentered" href="#">Aanvragen</a></div> In the module class suffix I place centered. But the button is still aligned right. what am I doing wrong.
User avatar
Senior Boarder

GK User
Wed Jun 12, 2013 8:49 pm
Reply with quote
Report this post
Could you post an url to your site?
User avatar
Moderator

GK User
Thu Jun 13, 2013 7:22 am
Reply with quote
Report this post
I design the site locally so I can't give you a link. I send herewith a screenprint. The button "Aanvragen" must be centered.
User avatar
Senior Boarder

GK User
Thu Jun 13, 2013 8:58 am
Reply with quote
Report this post
Change code to:
Code: Select all
<div class="gkButtonArea centered"><a class="gkCentered" href="#">Aanvragen</a></div>


and add to override.css:
Code: Select all
.gkButtonArea.centered .gkCentered {float:none; padding: 15px 50px;}


Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Thu Jun 13, 2013 9:50 am
Reply with quote
Report this post
Thanks Cyberek it works... :D
User avatar
Senior Boarder


cron