Jump to content

[SOLVED] centre the footer links


Recommended Posts

You can add a CMS page to the footer by going to Modules > Footer links block (in the Blocks section) > Configure, then tick which CMS pages you want. To add a non-CMS link, you'll need to edit modules/blockvariouslinks/blockvariouslinks.tpl and add a new <li>.

It is the following code in global.css that controls the appearance of the footer links:

/* Footer links */
ul.footer_links {
   list-style-type: none;
   clear: both;
   height: 2em;
   margin-top: 2em
}
ul.footer_links li {
   float: left;
   margin-right: 2em;
   height: 2em
}
ul.footer_links li a { text-decoration: none }
ul.footer_links li a:hover { color: black }
ul.footer_links li img.icon { vertical-align: -2px }



To centre the links, I think you'll need to change the above to:

/* Footer links */
ul.footer_links {
   list-style-type: none;
   clear: both;
   height: 2em;
   margin-top: 2em;
   text-align: center
}
ul.footer_links li {
   display: block;
   margin-right: 2em;
   height: 2em
}
ul.footer_links li a { text-decoration: none }
ul.footer_links li a:hover { color: black }
ul.footer_links li img.icon { vertical-align: -2px }

Link to comment
Share on other sites

I think I must have actually tried this before, but I tried it again just in case. I have placed 'align-text: centre at every place where the footer is mentioned, again one at a time. Download, edit, upload and try again. I used firebug which I saw in one thread which is useful to tell you the code where to look and tried all these options including yours but it doesn't work, I think I tried evrything - the best I got was pretty much all the text on the page centering. It seems the footer text is linked to the body css which is aligned left, with no way to separate the two. Somehow I can't get past this one, so I guess I have to accept it. But it just looks odd.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...