User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,665 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,876 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 675 | Replies: 6
Reply
Join Date: Sep 2007
Posts: 10
Reputation: microtekblue is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
microtekblue microtekblue is offline Offline
Newbie Poster

Question How to center site using xhtml and css using DW CS3

  #1  
Mar 19th, 2008
Hello.

My site www.justwantaquote.com

doesnt seem to display in the center of the site.

Its made using xhtml/css using Dreamweaver cs3

How can I center the entire div tags ? The page properties is set to left 0 and top 0.

Please see the site at www.justwantaquote.com

All help is greatly appreciated.

Thank you.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: How to center site using xhtml and css using DW CS3

  #2  
Mar 20th, 2008
Hmm, my idea.
Bound this page with any named <div> tag, onto <body>, e.g.

<body>
     <div id="container"> 
     Everything others 
     </div>
</body>

and in .css file set this:

#container {
	margin: 0 auto;
	width:  *px;
	}

*Width value of your page.
Last edited by lio04 : Mar 20th, 2008 at 6:19 pm.
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
Join Date: Sep 2007
Posts: 10
Reputation: microtekblue is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
microtekblue microtekblue is offline Offline
Newbie Poster

Question Re: How to center site using xhtml and css using DW CS3

  #3  
Mar 20th, 2008
Originally Posted by lio04 View Post
Hmm, my idea.
Bound this page with any named <div> tag, onto <body>, e.g.

<body>
     <div id="container"> 
     Everything others 
     </div>
</body>

and in .css file set this:

#container {
	margin: 0 auto;
	width:  *px;
	}

*Width value of your page.


Thanks for the help. But what do you mean by the width? You mean the width of my div tags, or the width that I want the page to be? Basically I want to be able to center the entire site.

Thanks.
Reply With Quote  
Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: How to center site using xhtml and css using DW CS3

  #4  
Mar 20th, 2008
You must not setting width, but is better have it. I mean width of your page elements, e.g. header, because entire page is wide all the same.
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
Join Date: Sep 2007
Posts: 10
Reputation: microtekblue is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
microtekblue microtekblue is offline Offline
Newbie Poster

Question Re: How to center site using xhtml and css using DW CS3

  #5  
Mar 20th, 2008
Originally Posted by lio04 View Post
You must not setting width, but is better have it. I mean width of your page elements, e.g. header, because entire page is wide all the same.



Sorry I have no idea what you just said there. Could you be a bit more clear.

Thanks.
Reply With Quote  
Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: How to center site using xhtml and css using DW CS3

  #6  
Mar 20th, 2008
lol, I am just really bad in english.
http://img214.imageshack.us/img214/6728/desktop3hi8.png

Here is better image.
Last edited by lio04 : Mar 20th, 2008 at 8:59 pm.
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
Join Date: Sep 2007
Posts: 10
Reputation: microtekblue is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
microtekblue microtekblue is offline Offline
Newbie Poster

Re: How to center site using xhtml and css using DW CS3

  #7  
Mar 20th, 2008
Originally Posted by lio04 View Post
lol, I am just really bad in english.
http://img214.imageshack.us/img214/6728/desktop3hi8.png


Ok I see what your saying...thanks for the image.

I will try to make those changes....

Thanks a lot. You are Great help!

Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 1:50 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC