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
--
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
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,
3 matches
Mail list logo