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
    stp
    stp is offline
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    first post, simple css alignment problem?

    hi, i've just started using fireworks.

    i've exported a site, with pop up menus.

    the site is aligned left, i want it aligned center.

    if i put a div=center tag in the html code, it still aligns to the left, so it must be something to do with the style sheet.

    the first bit of code in my style sheet reads as follows

    td img {
    /* Another Mozilla/Netscape bug with making sure our images display correctly */
    display: block;
    }

    #FWTableContainer2092973722 {
    /* The master div to make sure that our popup menus get aligned correctly. Be careful when playing with this one. */
    position:absolute;
    margin:0px;
    text-align:left;
    body-align:center;
    }

    #MMMenuContainer0020132453_0 {
    /* This ID is related to the master menu div for menu MMMenuContainer0020132453_0 and contains the important positioning information for the menu as a whole */
    position:absolute;
    left:177px;
    top:283px;
    visibility:hidden;
    z-index:300;
    }



    how can i get my site to align center?

    thanks.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Link?

    Please supply the entire page markup and all the style rules, preferably as a link to an online page; there's no telling what is wrong without seeing the whole picture. By the way, a "div=center" tag is no valid HTML in any version.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,174
    Thanks
    19
    Thanked 66 Times in 65 Posts
    Without seeing your markup these are somethings your should try.

    Set your body to text-align:center;

    or wrap the whole site in a wrapper div ie

    <div id = "wrap">
    <!--your code here -->
    </div>
    then set that div to margin:auto;


  •  

    Posting Permissions

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