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.

CSS Forum


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



Reply
Old 03-23-2009, 02:44 AM Please Help
Novice Talker

Posts: 5
Name: Luv2
Location: Planet Earth
Trades: 0
I am working on a site and need help with centering.

I did read the links at the top of this page, but I still cant seem to figure out where I went wrong.

At first the page was centered properly, I edited it and then it was no longer centered.

here is the link:
http://tonyacryer.com/test/index.htm

If you need anything else, please let me know.

Thanks everyone!
Luv2Learn is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-23-2009, 09:45 AM Re: Please Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The quick fix is to wrap everything inside a #wrapper div and apply the centering to that.

So, you add this right after the <body> tag:
<div id="wrapper">
..then close it after the end of the table with </div>

Css for this would be:
#wrapper{
width: 900px; /*must declare a width*/
margin: 0 auto; /*this does the centering*/
position: relative;
padding: 0;
}

The BETTER fix - dump the tables for layout.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 10:03 AM Re: Please Help
Skilled Talker

Posts: 84
Trades: 0
Please try removing the bottom line
<p class="style1">&nbsp;</p>
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Old 03-23-2009, 10:20 AM Re: Please Help
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
That has no bearing whatsoever on the problem, it's simply extraneous junk.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-24-2009, 05:41 AM Re: Please Help
Novice Talker

Posts: 5
Name: Luv2
Location: Planet Earth
Trades: 0
Quote:
Originally Posted by LadynRed View Post

The BETTER fix - dump the tables for layout.
HAHA! I intend to. But as I am a circa 2001 webdesigner, Ive gotta relearn everything. This CSS is pretty challenging, so until I remember what I used to know Ive just got to combine the 2.

Thank you very much for your help. Im about to go give it a go now.
Luv2Learn is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Please Help
 

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 2.31967 seconds with 12 queries