I am really sorry to ask this basic question but I cannot find the answer anywhere and I have looked. Please can someone tell me how to centre a template. I have found a template that is perfect for my requirements but it is positioned to the left and I would like it centred.
Many thanks
Page 1 of 1
basic question about Template
#3
Posted 04 February 2010 - 01:58 PM
The main (first) DIV of the website (let's call it container) can be centered with the following css:
body {
text-align: center; /* for internet explorer */
}
.container {
width: 990px; /* example: depends on template*/
margin: 0 auto 0 auto; /*top right bottom left*/
text-align: left; /*overrule text align set in body*/
}
Regards
Mark
www.deraaf.com
=====
body {
text-align: center; /* for internet explorer */
}
.container {
width: 990px; /* example: depends on template*/
margin: 0 auto 0 auto; /*top right bottom left*/
text-align: left; /*overrule text align set in body*/
}
Regards
Mark
www.deraaf.com
=====
Spring0105, on 18 December 2009 - 07:17 AM, said:
I am really sorry to ask this basic question but I cannot find the answer anywhere and I have looked. Please can someone tell me how to centre a template. I have found a template that is perfect for my requirements but it is positioned to the left and I would like it centred.
Many thanks
Many thanks
Share this topic:
Page 1 of 1


Help
Back to top
MultiQuote








