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
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    center page in IE and Firefox at the same time

    Hey.

    I need to center my page in both IE and firefox at the same time. When using..... text-align:center; in body and margin-left(right):auto;.....it will center in IE and when using........... margin-left(right): 50%; ...... it will center in firefox. I have tried using both at the same time but that's not working.....


    Any suggestions???

    best regards

    kofoed

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by Kofoed View Post
    Hey.

    I need to center my page in both IE and firefox at the same time. When using..... text-align:center; in body and margin-left(right):auto;.....it will center in IE and when using........... margin-left(right): 50%; ...... it will center in firefox. I have tried using both at the same time but that's not working.....


    Any suggestions???

    best regards

    kofoed
    Your complete code would help.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    A link would be more helpful.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls


  •  

    Posting Permissions

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