Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    nfs
    nfs is offline
    New Coder
    Join Date
    Feb 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    text-align problem with FireFox

    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!!
    http://individual.utoronto.ca/robin_ge/

  • #2
    New Coder
    Join Date
    Dec 2004
    Location
    Ontario, Canada
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Add margin:auto; to the div.middle style.
    Code:
    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.

    Nite

  • #3
    nfs
    nfs is offline
    New Coder
    Join Date
    Feb 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cool! Thank you!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •