View Full Version : Centering
03-10-2009, 04:27 PM
I am wanting to adjust the article width on my Joomla site, and I have figured out that I have to add some code to the template_css.css file, but it is not centered. What could I add to the code to get this centered? Thanks
03-10-2009, 05:28 PM
That site looks pretty centered... maybe it would help if you were more specific with what your trying to change.
03-10-2009, 07:00 PM
Hello excavator, thanks for the reply. I am trying to center all the articles on my Joomla site....I've adjusted the width, but am confused on how to get them centered, the white text area. Below is a link to one of the articles:
I've added code to my css file, but not sure what to add to center the area:
03-10-2009, 07:18 PM
This should center #main-content -
margin: 0 auto;
To center an element you need:
left and right margins set to auto
As long as whatever you have inside #main-content will fit. I don't know what your table is doing but if it's more than 800px it will cause problems. Have a look at the link about tables in my sig below.
03-10-2009, 08:06 PM
God, that worked perfectly! I will read your information that you have listed....thanks for all your help on this, it took me forever to try and figure this out!
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.