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
    Mar 2004
    Location
    New Jersey
    Posts
    70
    Thanks
    2
    Thanked 1 Time in 1 Post

    Doctype for fixed position AND vertical align

    I cannot seem to find a doctype that forces IE (6/7) to render fixed position elements correctly, and also allows vertical alignment of some sort. I've tried valign in the html, vertical-align in the css... nothing's working. Seems like I can only have one or the other.

    Is there somewhere I can see what each doctype supports?

  • #2
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    Doctypes are never things you pick and choose willy-nilly to fix any problems. Doctypes are the very first thing to go on a page and never change throughout the project. For new pages, that choice is always a strict doctype, too. If you're waiting till now to fix problems by adding a doctype, it's too late.

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,744
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello jakerbug,
    The dr is right, you should most likely be using an HTML 4.01 Strict DocType and there would be no need to change it.
    I'm curious what you mean about only having one or the other. IE6 does not support position:fixed; (see a workaround here) and I wonder how/where you're applying vertical-align.

    Can you give us a link to the test site?
    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


  •  

    Posting Permissions

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