Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Please help: cannot center Div
Old 03-16-2006, 12:00 AM Please help: cannot center Div
Average Talker

Posts: 21
Trades: 0
Hello, I'm working on a template for http://rm2k.be . I have created the basic content section, but as you will soon see, I cannot get the main section to line up perfectly in the center. If someone could look at my css (http://sysh.org/rm2k/style.css) and figure out what I'm doing wrong, I would be extremely grateful. Also, if anyone could give me feedback on the colors/and tips that would be great. Thanks.
__________________

Please login or register to view this content. Registration is FREE
camisaac is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2006, 12:24 AM Re: Please help: cannot center Div
vangogh's Avatar
Post Impressionist

Posts: 10,816
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
The easiest way to center your page is to wrap everything (both the title and random divs) in another div. I usually give mine an id of page. The you would want to have css on the new page div like:

div#page {width: #px; margin-left: auto; margin-right: auto}

You'll want to remove the left:18% you have on the body now. I'm also a big fan of green so I like the colors you're using. The different shades are working well together.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 03-16-2006 at 12:26 AM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Please help: cannot center Div
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15115 seconds with 12 queries