Saturday 4th August 2007

by Sajith M.R

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

.

· · · ◊ ◊ ◊ · · ·

One Response to “Central Align Problem in Mozilla”

  1. Christopher says:

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

· · · ◊ ◊ ◊ · · ·

Leave a Reply

وظائف 2011 تحويل العملات برامج برنامج تسريع التحميل برنامج الفلاش برنامج محول الصوتيات عربي hotel 2011 زيادة رواتب العساكر 1431