jdmorrisn Posted July 15, 2010 Share Posted July 15, 2010 Hi, anyone know how to make it so that the footer links are in the centre rather than to the left? Also how can I add a link to the footer? Link to comment Share on other sites More sharing options...
rocky Posted July 16, 2010 Share Posted July 16, 2010 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 More sharing options...
jdmorrisn Posted July 16, 2010 Author Share Posted July 16, 2010 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 More sharing options...
frizzle Posted July 26, 2010 Share Posted July 26, 2010 In globals.cssaround line 811 /* Footer */ #footer { border-top: 1px solid #d0d3d8; padding: 0.5em 0; clear: both; text-align: center; <-- line to add } Link to comment Share on other sites More sharing options...
dixie Posted July 27, 2010 Share Posted July 27, 2010 I centered my footer by doing the following:Line 817 #footer .block_various_linksafter this line: list-style: none;add this line: text-align: center; Link to comment Share on other sites More sharing options...
jdmorrisn Posted July 27, 2010 Author Share Posted July 27, 2010 Super, thanks - I was beginning to give up hope!Take a look at my other posts - see if you can work some magic there also Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now