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
page does not center in firefox
Old 04-14-2008, 02:38 PM page does not center in firefox
Junior Talker

Posts: 1
Name: Ken Ross
Trades: 0
can anyone help here. My page centers fine in ie but not in firefox?
kenster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-14-2008, 02:50 PM Re: page does not center in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
How are you trying to center it ?

I suggest you try reading the stickies: http://www.webmaster-talk.com/css-fo...r-website.html
__________________
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 04-14-2008, 06:18 PM Re: page does not center in firefox
Webmaster Talker

Posts: 560
Trades: 0
body {
margin-right: auto;
margin-left: auto;
text-align: center;
}

That should do the trick, assuming you are using CSS .

Matt
__________________

Please login or register to view this content. Registration is FREE
170 Designs is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 07:00 PM Re: page does not center in firefox
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
No I don't since you didn't post a link.
joder is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 07:16 PM Re: page does not center in firefox
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Quote:
Originally Posted by 170 Designs View Post
body {
margin-right: auto;
margin-left: auto;
text-align: center;
}

That should do the trick, assuming you are using CSS .

Matt
sorry, I hate to do this but you can do this by margin:0 auto; just shorter that way ,

also text-align:center; isn't needed,

and there must be a width set
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 07:57 PM Re: page does not center in firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Hold on there... you can't margin: 0 auto on the BODY, that won't work, and setting a width on the BODY is equally pointless.

Apply margin: 0 auto, and a width on div you're trying to center, now THAT will work !
__________________
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 04-14-2008, 08:05 PM Re: page does not center in firefox
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Hold on there... you can't margin: 0 auto on the BODY, that won't work, and setting a width on the BODY is equally pointless.

Apply margin: 0 auto, and a width on div you're trying to center, now THAT will work !
woops, thought he was setting it for a div.
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 08:43 PM Re: page does not center in firefox
johniman7's Avatar
President, JLI Media

Posts: 965
Name: John Irving
Trades: 0
What I would do is create either a div named content or container (or a table consisting of one huge cell) and center that. Example...

Quote:
<html>
<body>
<center>
<div id="container"> My Content </div>
</center>
</body>
</html>
Of course, you would have to use html or css to set a width for that area.
__________________
Cheers, John Irving: My Blog
JLI Media:
Please login or register to view this content. Registration is FREE
| Website Development (Link Coming Soon!)
johniman7 is offline
Reply With Quote
View Public Profile Visit johniman7's homepage!
 
Old 04-14-2008, 08:46 PM Re: page does not center in firefox
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
I wouldn't use the <center> tag. That is deprecated. Use CSS on a div like LadynRed pointed out.
joder is offline
Reply With Quote
View Public Profile
 
Old 04-14-2008, 09:59 PM Re: page does not center in firefox
johniman7's Avatar
President, JLI Media

Posts: 965
Name: John Irving
Trades: 0
Yep, good point. I was thinking of using that but for simplicity sake used center. The center aligned div is needed for xhtml I believe as well.
__________________
Cheers, John Irving: My Blog
JLI Media:
Please login or register to view this content. Registration is FREE
| Website Development (Link Coming Soon!)
johniman7 is offline
Reply With Quote
View Public Profile Visit johniman7's homepage!
 
Old 04-14-2008, 10:07 PM Re: page does not center in firefox
mynameisfai's Avatar
Skilled Talker

Posts: 49
Trades: 0
wow good info i get here
__________________

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


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


Please login or register to view this content. Registration is FREE
mynameisfai is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 04:31 AM Re: page does not center in firefox
Novice Talker

Posts: 12
Name: Nitin
Trades: 0
wat ladyn said is rite
i tried the same n yea the probs fixed
cheers
d3c3nt is offline
Reply With Quote
View Public Profile
 
Old 04-15-2008, 10:12 PM Re: page does not center in firefox
Super Talker

Posts: 138
Name: Shawn Lindsey
Location: Kentucky
Trades: 0
Hello,
Also if you are not using CSS, using Tables, is sort of older way to do them, but still pretty popular, just make sure the table it self, is centered and it should center perfectly and be able to expand to fit different resolutions, as long as you make the table in a % and not in Pixels.

Hope this helps some, please let me know if there is anything else I can do for you.
__________________

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

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

ShawnITSolution is offline
Reply With Quote
View Public Profile Visit ShawnITSolution's homepage!
 
Old 04-16-2008, 07:06 AM Re: page does not center in firefox
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Don't use tables. Center with divs, NOT with tables
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to page does not center in firefox
 

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