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
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts

    position with css

    Using CSS I want to have it so that my info is in a container that is 700px wide in the center of the page. the following code works in IE but fails miserably in Firefox, Netscape, and Opera.
    Code:
    #l1{
        MARGIN-TOP: 0px;
        TEXT-ALIGN: left;
        WIDTH: 700px
    }
    #main{
        TEXT-ALIGN: center;
    }
    These are both div id's. The l1 div is nested inside the main div.

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    Code:
    #l1{
    margin:auto;
        MARGIN-TOP: 0px;
        TEXT-ALIGN: left;
        WIDTH: 700px
    }
    #main{
        TEXT-ALIGN: center;
    }

  • #3
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,072
    Thanks
    4
    Thanked 8 Times in 8 Posts

    Thumbs up thank you

    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
    •