Aug 4 2007

Central Align Problem in Mozilla

firefox.png

Alignment is a big problem in different Browsers. For example some times central
alignment of table shows correctly in IE (Internet Explorer). But shows as aligned
left in Mozilla. There is a lot of solutions for this. In mozilla you know,
for central align , there is a special string : -moz-center

eg: text-align:”-moz-center”

Similarly -moz-left, -moz-right etc are special strings for mozilla.

We can solve the alignment problem using style sheet’s auto
property.

Eg:

<style>
.test{
margin-right: auto;
margin-left: auto;
}

</style>

_________________

Add class = “test” inside a tag which is to be aligned
as center.

This will solve the central align problem in mozilla and IE

Have a nice Day
Sajith

.

TAGS:

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Sponsors

    Advt on sajithmr.com
    Advt on sajithmr.com
    Advt on sajithmr.com
    Itslife Online

Recent Comments

  • Binny V A: Thanks for the post - love the picture ;-)
  • TheAnand: A lot of people are seeing errors with google video chat….is there any other software which has to be...
  • Alex: Wow, interresting analysis you have done! I’m trying to run GoogleVoiceAndVideoSetup on linux, using...
  • Mella Fitriansyah: Nice plugin, I will try to add this plugin in my blog…
  • Mella Fitriansyah: Nice Info, Sir i will reading your another post success for you

Recent Readers

JOIN MY COMMUNITY!

Recent Posts