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
basic question about Template
Started by
Spring0105
, Dec 18 2009 07:17 AM
2 replies to this topic
#1
Posted 18 December 2009 - 07:17 AM
#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
=====
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
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










