Jump to content


basic question about Template


  • You cannot reply to this topic
2 replies to this topic

#1 Spring0105

    Etomite Forum Newbie

  • Member
  • 2 posts

Posted 18 December 2009 - 07:17 AM

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

#2 Dean

    Loves Etomite Forums!

  • Admin
  • 4,744 posts
  • Gender:Male

Posted 18 December 2009 - 09:52 AM

Each template is different on how it's centred - based on how it was made. Which template is it?
Also, try asking on the GFWD forums.

#3 Markioooo

    Etomite Forum Newbie

  • Member
  • 16 posts

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

=====

View PostSpring0105, 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






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users