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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 05-21-2007, 02:13 AM Centering
Novice Talker

Posts: 5
Name: Dustin
Trades: 0
Thanks again.

Last edited by QuicksandJesus; 05-21-2007 at 11:23 AM..
QuicksandJesus is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-21-2007, 04:24 AM Re: Centering
vkw91's Avatar
Ultra Talker

Latest Blog Post:
Good Web Design Guide - part 1
Posts: 314
Name: Vicky
Location: Wales
Trades: 0
CSS in your header:

HTML Code:
#wrapper {
 text-align:left;
 width:760px;
 margin:0 auto;
 position:relative;
 left: 5px;
 top: 12px;
}
Then add the <div id="wrapper"> </div> around your content in the body.

There is way of doing both vertical and horizonal centering too which might work well on your site - let me know if you want that one.
__________________
Blog (new):
Please login or register to view this content. Registration is FREE

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

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

vkw91 is offline
Reply With Quote
View Public Profile Visit vkw91's homepage!
 
Old 05-21-2007, 09:09 AM Re: Centering
Novice Talker

Posts: 5
Name: Dustin
Trades: 0
That might be nice to have as well.

Like I said, it's been sometime since I did a website.. I'm working on this site in Dreamweaver. I attempted adding in the code just underneath the </style> but before the </head>. Then added the "<div id="wrapper"> just underneath the <div id="Layer1">. But did not see a change.

Does the </div> closing tag need to be used even though I have that further down in the code?

I think I'm putting it all in the wrong space.. but not sure..

Sorry for the hassle.. but definitely appreciate the help from the super-brains around here.
QuicksandJesus is offline
Reply With Quote
View Public Profile
 
Old 05-21-2007, 10:04 AM Re: Centering
Junior Talker

Posts: 4
Name: Cristina Lemeni
Location: Romania
Trades: 0
the code works perfectly as long as you put the #wrapper inside the <style> tag (maybe you should consider using an external css) and then put all your content inside of it (so that your page has, after <body> and before </body> the <div id="wrapper"></div> tags. greetings.
__________________

Please login or register to view this content. Registration is FREE
cris_lemeni is offline
Reply With Quote
View Public Profile Visit cris_lemeni's homepage!
 
Old 05-21-2007, 11:23 AM Re: Centering
Novice Talker

Posts: 5
Name: Dustin
Trades: 0
Alrighty. Got it fixed and it appears to be working fine now.

Thanks for the help!
QuicksandJesus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Centering
 

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