View Full Version : text-align problem with FireFox

02-06-2005, 10:00 PM
Hi! I just redesigned my website and it seems that it won't align to the center in FireFox, but it works in IE. Does anyone know what the problem is? Thanks in advance!!

02-06-2005, 10:12 PM
Add margin:auto; to the div.middle style.

div.middle {
margin: auto;
width: 531px;
background-image: url('images/middle.gif');
background-repeat: repeat;

AFIK, only IE will center divs by putting text-align: center; in the body style. The problem with this is you will have to apply text-align: left; to your first div else all text will be center aligned within their tags.


02-07-2005, 12:18 AM
Cool! Thank you! :thumbsup:

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum