Central Align Problem in Mozilla

firefox

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

.

1 Comments

One Response to “Central Align Problem in Mozilla”

  1. Christopher January 20, 2009 at 10:16 pm #

    Thanks for the help, its made me think about testing my site in different browsers!

Leave a Reply

More in html, webworld (64 of 72 articles)


How can we check whether an image is loaded fully or partially using javascript. It is possible See the ...