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
 
 
When You Register, These Ads Go Away!
Old 04-26-2008, 03:39 PM Re: Is there a way to center my site.........
chrishirst's Avatar
Super Moderator

Posts: 22,223
Location: Blackpool. UK
Trades: 0
http://www.webmaster-talk.com/css-fo...r-website.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
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
__________________
What is FTP and how to use FTP Client? - Read Article
Google Analytics Interface Tutorial - Watch Video
technica is offline
Reply With Quote
View Public Profile
 
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
Super Moderator

Posts: 22,223
Location: Blackpool. UK
Trades: 0
So, why do you have a stray <html> BEFORE the DTD?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
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
Super Moderator

Posts: 22,223
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!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
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.12903 seconds with 14 queries