Results 1 to 4 of 4
  1. #1
    Senior Member CYoung's Avatar
    Join Date
    Mar 2009
    Location
    Hull, UK
    Posts
    321
    Thanks
    0
    Thanked 1 Time in 1 Post

    Help for a Client

    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

    Thanks

    Curtis

  2. #2
    Senior Member Logopro's Avatar
    Join Date
    Feb 2010
    Location
    Wales, UK
    Posts
    146
    Thanks
    0
    Thanked 1 Time in 1 Post
    The simplest way is to add...

    <center>

    **page code**

    </center>

    ....at either end of the html doc

  3. #3
    Member IS-James's Avatar
    Join Date
    Feb 2009
    Location
    Leicester
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    Example:

    HTML:
    HTML Code:
    <div id="wrapper">
      The rest of your site code goes in here.
    </div>
    CSS:
    Code:
    #wrapper {
      width: 780px;
      margin: 0 auto;
    }

  4. #4
    Senior Member Logopro's Avatar
    Join Date
    Feb 2010
    Location
    Wales, UK
    Posts
    146
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by IS-James View Post
    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.
    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:

Similar Threads

  1. The ex-client!
    By Angie in forum General Business Forum:
    Replies: 19
    Last Post: 01-05-2012, 10:45 PM
  2. Bad client!
    By marktea in forum General Business Forum:
    Replies: 11
    Last Post: 04-11-2011, 03:40 PM
  3. first client
    By graflicks in forum Website Design Forum:
    Replies: 4
    Last Post: 07-16-2010, 07:39 PM
  4. WHAT did you just say to your client??
    By sweetums in forum Chill Out Forum:
    Replies: 5
    Last Post: 06-22-2009, 04:24 PM
  5. Client Stories
    By Xenonsoft in forum General Business Forum:
    Replies: 7
    Last Post: 01-16-2009, 06:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •