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
Is there a way to center my site.........
Old 04-26-2008, 02:48 PM Is there a way to center my site.........
Junior Talker

Posts: 3
Trades: 0
Is there a way to center my site. I just finished my web design class and my professor told me to use absolutes. I searched the forum and found several threads, but did not see what I could use instead of absolutes. And if I should not use absolutes, what can I use in CSS instead? Here is my site: www.owen-heuston.artapsu.com


Anyway, it is centered on macs in both Safaria and firefox, it is the pc that is a problem in bothe IE and firefox.
red71rum is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-26-2008, 03:39 PM Re: Is there a way to center my site.........
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.webmaster-talk.com/css-fo...r-website.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-26-2008, 03:48 PM Re: Is there a way to center my site.........
Average Talker

Posts: 22
Trades: 0
suggest you use <center> just after <body> tag and </canter> just before </body>tag.

so it will look like
<body>
<center>
your site code
</center>
</body>

hope it helps
__________________

Please login or register to view this content. Registration is FREE
- Win $5 every week on the forum

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


Please login or register to view this content. Registration is FREE
technica is offline
Reply With Quote
View Public Profile Visit technica's homepage!
 
Old 04-26-2008, 05:55 PM Re: Is there a way to center my site.........
Junior Talker

Posts: 3
Trades: 0
Thanks for the info guys, but I am unable to still center the site still. I went with
this fix:
body {
text-align: center;
min-width: 600px;
}

#wrapper {
margin:0 auto;
width:600px;
text-align: left;
}

But when I put it all right after body in my code, nothing is changed. I have included the code.
Attached Files
File Type: txt photography.txt (29.8 KB, 5 views)

Last edited by red71rum; 04-26-2008 at 06:01 PM..
red71rum is offline
Reply With Quote
View Public Profile
 
Old 04-26-2008, 07:50 PM Re: Is there a way to center my site.........
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So, why do you have a stray <html> BEFORE the DTD?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-26-2008, 07:54 PM Re: Is there a way to center my site.........
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by technica View Post
suggest you use <center> just after <body> tag and </canter> just before </body>tag.

so it will look like
<body>
<center>
your site code
</center>
</body>

hope it helps
That is definitely NOT the way to centre a layout. The <center> tag has been deprecated for almost 10 years now.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-26-2008, 11:16 PM Re: Is there a way to center my site.........
Junior Talker

Posts: 3
Trades: 0
Quote:
So, why do you have a stray <html> BEFORE the DTD?
I actually don't know why, but I missed it before I posted the site as my end project for class. I have now deleted it. I must have missed it in my hurry to finish the site. Thanks for pointing that out, although I still can't center the site.
red71rum is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is there a way to center my site.........
 

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.25663 seconds with 13 queries