What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Center tag in Firefox

Center tag in Firefox
Author: Message:
Weyzza
Veteran Member
*****

Avatar
SoCal sunset > *

Posts: 1170
Reputation: 29
– / Male / –
Joined: May 2003
O.P. Center tag in Firefox
Does anyone know the tag for Firefox to make an object centered?
The <center> tag works in IE not in Firefox.

I've searched for it, but I couldn't find any satisfying answer.
Thanks...

[ot]Whooo.... 1 post to go[/ot]

This post was edited on 09-14-2005 at 08:24 AM by Weyzza.
Registered 7849 days, 11 hours, 53 minutes, 9 seconds ago.
Happy Birthday, WDZ

09-14-2005 08:22 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Center tag in Firefox
Firefox adheres much more strictly to the W3C standards than IE does. However, if you set the DOCTYPE to HTML 3.2 or HTML 4.0/XHTML 1.0 Transitional, you should be able to use <center>. However, if you use HTML 4.0/XHTML 1.0 Strict, you have to use CSS e.g. style="text-align : center;".
[Image: spartaafk.png]
09-14-2005 08:44 AM
Profile PM Web Find Quote Report
brian
Senior Member
****

Avatar

Posts: 819
Reputation: 43
– / Male / –
Joined: Sep 2004
RE: Center tag in Firefox
That would make it

code:
<div style="text-align: center">this text is centered</div>
09-14-2005 10:45 AM
Profile PM Find Quote Report
Fourjays
Full Member
***

Avatar
Jaguar E-Type

Posts: 134
Reputation: 6
36 / Male / –
Joined: Jan 2005
RE: Center tag in Firefox
<center></center> works fine for me in Firefox and IE and Opera (with XHTML Doctype). Only thing is that IE and Opera center everything between the tags, including any text within tables (unless specified otherwise in the CSS).
[Image: msgsig7yx.jpg]
A new range of internet based services... Coming Soon(ish)! - www.fortheinter.net
09-14-2005 12:00 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Center tag in Firefox
quote:
Originally posted by brian
That would make it

code:
<div style="text-align: center">this text is centered</div>

You can also apply text-align to any element that can contain text, like <p>, <td>, <dd>, <div>, <span>... the list goes on.

This post was edited on 09-14-2005 at 12:09 PM by RaceProUK.
[Image: spartaafk.png]
09-14-2005 12:09 PM
Profile PM Web Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: Center tag in Firefox
code:
<div align="center">centered text</div>
works mostly too :undecided:
[Image: sig.png]
09-14-2005 05:03 PM
Profile PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Center tag in Firefox
Yes, it will work, but it's deprecated, like the <center> tag. Using CSS is now the recommended (and standard) way.
[Image: spartaafk.png]
09-14-2005 06:47 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On