[web2py] css-question: centering footer

2010-04-21 Thread Johann Spies
Can somebody explain to me why the following does not cause the copyright notice to be centered? div class=ez-box footer style=text-align: center; p Copyright © 2009 - Powered by a href=http://www.web2py.com;web2py/a /p /div Regards Johann --

Re: [web2py] css-question: centering footer

2010-04-21 Thread Timothy Farrell
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

Re: [web2py] css-question: centering footer

2010-04-21 Thread Johann Spies
Thanks Tim, You shouldn't need the p 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 p and the text was centering ... Regards Johann -- Finally, brethren, whatsoever things are true,