Re: [web2py] css-question: centering footer
Thanks Tim, > You shouldn't need the tags. They only confuse the matter since you're > doing direct formatting. That was actually the line in the default web2py layout.html. I removed the and the text was centering ... Regards Johann -- "Finally, brethren, whatsoever things are true, whatsoever things are honest, whatsoever things are just, whatsoever things are pure, whatsoever things are lovely, whatsoever things are of good report; if there be any virtue, and if there be any praise, think on these things."Philippians 4:8 -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
Re: [web2py] css-question: centering footer
That will center the contents within the div. However, the div auto-sizes to it's content unless you give it other style properties. You are assuming that your div is the full width of the browser window. To do what you want, set two more styles on the div: width: 100%; /* Force the width to take up all possible space */ margin: 10px auto; /* Set the side margins to be equal and fill all possible space. */ You shouldn't need the tags. They only confuse the matter since you're doing direct formatting. -tim On 4/21/2010 6:10 AM, Johann Spies wrote: Can somebody explain to me why the following does not cause the copyright notice to be centered? Copyright Š 2009 - Powered byhttp://www.web2py.com";>web2py Regards Johann -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en