Centering icon row

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 Mar 04, 2015 8:21 pm
Reply with quote
Report this post
I'm trying to center the four icons in a front page module without using the <center> tag. See image.
Using <center>....</center> works fine but I'd like to use CSS.

The code in the custom HTML module looks like this:

Code: Select all
<ul class="soc">
<li style="text-align: center;"><a href="https://twitter.com/xxxxx" class="soc-twitter"></a></li>
<li style="text-align: center;"><a href="https://www.facebook.com/pages/xxxxx" class="soc-facebook"></a></li>
<li style="text-align: center;"><a href="https://plus.google.com/xxxxx/posts" class="soc-google"></a></li>
<li style="text-align: center;"><a href="https://www.linkedin.com/company/xxxxx" class="soc-linkedin soc-icon-last"></a></li>
</ul>


I've tried different CSS in the css.override file but can't get it to work and center the row of icons. Suggestions?
User avatar
Senior Boarder

GK User
Wed Mar 04, 2015 8:59 pm
Reply with quote
Report this post
Could you please post an url to your site?
User avatar
Moderator

GK User
Fri Mar 06, 2015 2:56 pm
Reply with quote
Report this post
User avatar
Senior Boarder

GK User
Sat Mar 07, 2015 8:32 pm
Reply with quote
Report this post
Please edit: /templates/gk_news2/css/override.css and add at its end:
Code: Select all
#gkSidebarRight ul.soc {text-align:center;}

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

GK User
Sun Mar 08, 2015 9:01 pm
Reply with quote
Report this post
That worked -thanks
Great support as usual!
User avatar
Senior Boarder

GK User
Mon Mar 09, 2015 7:24 pm
Reply with quote
Report this post
Is there anything else I can help you with regarding this topic?
User avatar
Moderator


cron