Button center on sidebar position
January 2013 Joomla Template
Rate this topic: 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.
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.
-
- 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)
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; }
-
- 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.
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.
-
- 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]
Please try this code:
[cod]
.center-me p { text-align: center; }
.center-me p a { float: none; width: 100px; margin: 0 auto; }
[/code]
-
- 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.
-
- 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.
Great to hear that I'm glad I could help.
-
- Moderator
6 posts
• Page 1 of 1