Web Hosting Deals Holiday Logo Design Webcam Chat Website Header Templates Register domain Search Engine Optimisation Web Hosting
Go Back   Talk Mania Forum > Website Design

Website Design HTML Reference and CSS , DHTML, XML. Browser Compatibility questions and answers,
Your source for basic website builder knowledge

 Image
Buy Sell Downloads

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2008, 02:27 AM
Junior Member
 
Join Date: Nov 2007
Posts: 5
matt159 is on a distinguished road
Question centralized xhtml/css site

How do you centralize webpages which are xhtml/css can someone explain from start because am a beggineer at this

Reply With Quote
  #2 (permalink)  
Old 03-10-2008, 10:14 PM
Junior Member
 
Join Date: Mar 2008
Posts: 4
dubLeE is on a distinguished road
well i use margin-left:auto and margin-right:auto and that perfectly centers the entire site.

so lets say you have a site 800px wide and you want it centered well you'd set up your container like this via CSS:

Code:
#container{
     width:800px; 
     margin-left:auto;
     margin-right:auto;
     }
and then your html would just be:

HTML Code:
...
<body>
<div id="container"> THE REST OF THE SITE HERE </div>
</body>
...

Reply With Quote
Reply

Bookmarks

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
Forum Jump


All times are GMT +2. The time now is 03:51 PM.


Fake ID

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Forums Copyright © Talk-Mania.com