Resell Print? Click here to see how we can help


Graphic Design Forums: UK forums for graphic designers » Website Design Forums: » Website Coding & Programming Forum: » Help for a Client

Reply
Old 02-21-2010, 02:00 PM   #1
Senior Member
 
CYoung's Avatar
 
Join Date: Mar 2009
Location: Hull, UK
Posts: 321
Thanks: 11
Thanked 25 Times in 25 Posts
Send a message via MSN to CYoung
Default 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
CYoung is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 02-24-2010, 06:18 PM   #2
Senior Member
 
Logopro's Avatar
 
Join Date: Feb 2010
Location: Wales, UK
Posts: 146
Thanks: 6
Thanked 13 Times in 11 Posts
Default

The simplest way is to add...

<center>

**page code**

</center>

....at either end of the html doc
Logopro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 03-05-2010, 03:39 PM   #3
Member
 
IS-James's Avatar
 
Join Date: Feb 2009
Location: Leicester
Posts: 39
Thanks: 0
Thanked 9 Times in 7 Posts
Default

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;
}
IS-James is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Old 03-09-2010, 05:07 PM   #4
Senior Member
 
Logopro's Avatar
 
Join Date: Feb 2010
Location: Wales, UK
Posts: 146
Thanks: 6
Thanked 13 Times in 11 Posts
Default

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
Logopro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookStumble this Post!Twit this!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Flyer Printing | Print Reseller Scheme | Graphic Design | Logo Designer | Web Design UK | Graphic Design UK | Letterhead Printing
Business Card Printing | UK Business Forum | Logo Designer | NCR Pads | NCR Books | Receipt Books | Drinks Coasters | A6 Flyers | A5 Leaflets
Web Design & Development | vBulletin Skins | Small Business Websites | Leaflets | Leaflet Printing | Web Design Liverpool | Invoice Books


DISCLAIMER: All posts on this forum express the views and opinions of the author only, not the owners, staff or advertisers, hence we will not be held liable.


Powered by vBulletin®
© Copyright Jelsoft Enterprises Ltd
SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.