Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help for a Client

Discussion in 'Website Coding & Programming Forum:' started by CYoung, Feb 21, 2010.

  1. CYoung

    CYoung Member

    A client has asked for advice on how to get his webpage centered. I only have basic knowledge of coding so if possible coudl so coders advise on how he can get it in the center of the page.

    Intruder Alarms - Home


    Curtis :icon_smile:
  2. Logopro

    Logopro Member

    The simplest way is to add...


    **page code**

    </center> either end of the html doc
  3. IS-James

    IS-James Member

    Really you need to be doing it with CSS not using <center> tags. <center> tags are deprecated, meaning they aren't in the the HTML standard anymore. Browsers still render them properly but there is no guarantee they will forever.

    A better way to centre the page is to use margins. If you put a <div> around everything you want to centre, give it an id of wrapper and then style it in your css.


    <div id="wrapper">
      The rest of your site code goes in here.
    #wrapper {
      width: 780px;
      margin: 0 auto;
  4. Logopro

    Logopro Member

    I understand that they are deprecated but it still remains the easiest way to center an entire site for the time being.

    Your way is obviously much better :icon_thumbup:

Share This Page