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 Coder
    Join Date
    Jul 2006
    Location
    Newcastle, england.
    Posts
    38
    Thanks
    2
    Thanked 0 Times in 0 Posts

    FF2 centering nightmare

    HELP!

    I'm having a nightmare with this. (Past and Present Buttons)

    It works great centering the div in everything, except FF2.

    http://192.168.1.2:5002/learning_new/index.php?cat=S

    If you click into the secondary category, it centers fine using the same divs and css in there. I can't work it out.

    I've centered them using a container div set to display:inline-block; with text-align:center;

    Any help, greatly appreciated.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello markosaurus,
    That's a dead link right now. I'll try it again later.

    For now though this may or may not help.
    You need 3 things to center an element:
    1. DocType Declaration
    2. An element with a width
    3. That elements left/right margins set to auto
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    That looks like an internal ip address to me....


  •  

    Posting Permissions

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