Button center on sidebar position

January 2013 Joomla Template
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
Thu Sep 26, 2013 5:56 pm
Reply with quote
Report this post
Hello,
I'm trying to center "ENGLISH" button on sidebar position in home of http://cedom.netamin.es. I read several post of this forum but I'm not be able to center it.

Can you help me?
Thanks,
David.
User avatar
Expert Boarder

teitbite
Sat Sep 28, 2013 2:02 am
Reply with quote
Report this post
Hi

Please try add a module class suffix to this module. For example " center-me", space in front is important.

Than add this code to override.css (check if override is enabled in template settings)

Code: Select all
.center-me p { text-align: center; }
.center-me p a { float: none; }
User avatar
Moderator

GK User
Sat Sep 28, 2013 8:04 am
Reply with quote
Report this post
Hello ,
your solution works partially because button now is centered, but it's width is too much, takes entire width of module.

What's wrong?
thanks a lot,
David N.
User avatar
Expert Boarder

teitbite
Tue Oct 01, 2013 11:18 am
Reply with quote
Report this post
Hi

Please try this code:

[cod]
.center-me p { text-align: center; }
.center-me p a { float: none; width: 100px; margin: 0 auto; }
[/code]
User avatar
Moderator

GK User
Tue Oct 01, 2013 1:38 pm
Reply with quote
Report this post
teitbite wrote:Hi

Please try this code:

[cod]
.center-me p { text-align: center; }
.center-me p a { float: none; width: 100px; margin: 0 auto; }
[/code]



hello,
It works,
Thanks,
David.
User avatar
Expert Boarder

teitbite
Wed Oct 02, 2013 12:39 pm
Reply with quote
Report this post
Hi

Great to hear that :) I'm glad I could help.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.