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
need help centering with css
Old 07-23-2007, 09:52 PM need help centering with css
Average Talker

Posts: 18
Name: Jason
Location: Texas
Trades: 0
Can somebody check my code. I am trying to center the main thing section and the picture logo. I am fairly new to CSS, and im jsut making the site to learn.

If you have any suggestions that would make the design better, feel free to criticize. I know its kinda crappy and pointless, but i dont have any other reason to make a website.

I have also had this problem on some other pages.

http://www.freewebs.com/jasonzidek/picturestest.html

Tahnks, Jason
jjz8706 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-23-2007, 09:58 PM Re: need help centering with css
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Remove the position:fixed from #pictures and #main, I see no real reason for them and once you do they will center in FF, Opera, Safari and IE 7.

To make IE 6 center you must add this to your CSS file
body{
text-align: center;
}
__________________
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 07-23-2007, 10:11 PM Re: need help centering with css
Average Talker

Posts: 18
Name: Jason
Location: Texas
Trades: 0
i had tried without the fixed position, and that didnt work. The IE6 fix centered the stuff, but the position didnt really affect it.

Also, how can i get the table to center inside the div tag.

Thanks for the help
jjz8706 is offline
Reply With Quote
View Public Profile
 
Old 07-23-2007, 10:20 PM Re: need help centering with css
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You have to put text-align: center in the rules for #main - that will center the CONTENTS of the div.

There is no reason to use position:fixed, especially since you're not 'fixing' the background in place. I think you are mistaking that for position:absolute, which is also not a good solution.
__________________
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 07-23-2007, 10:51 PM Re: need help centering with css
Average Talker

Posts: 18
Name: Jason
Location: Texas
Trades: 0
sorry, but i still cant seem to get the table centered in the main thing. I've updated. Thanks.

Im having the same problem with http://www.freewebs.com/jasonzidek/school.html also.

Last edited by jjz8706; 07-23-2007 at 10:55 PM..
jjz8706 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2007, 02:46 PM Re: need help centering with css
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Add this to your CSS:

#tablething table{
margin: 0 auto;}
__________________
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 07-24-2007, 05:21 PM Re: need help centering with css
Average Talker

Posts: 18
Name: Jason
Location: Texas
Trades: 0
awesome, thanks a bunch. What about the school page, where i have 4 divs that i would like to center as a whole. I tried to use a container, but that didnt seem to work.
jjz8706 is offline
Reply With Quote
View Public Profile
 
Old 07-24-2007, 09:04 PM Re: need help centering with css
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You have to get rid of the position:fixed on those divs.
__________________
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
 
Reply     « Reply to need help centering with css
 

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