www.webdeveloper.com
Results 1 to 4 of 4

Thread: changed doctype to HTML5, now page elements now out of place..

  1. #1
    Join Date
    Mar 2010
    Posts
    281

    changed doctype to HTML5, now page elements now out of place..

    Hi All,
    On a webpage I've been working on I changed the doctype declaration to HTML5 (!DOCTYPE HTML) and some page elements now have about 3 extra pixels between them(?). WT...?!

    Anyone experienced anything like this?
    The page elements are header graphics of a js accordion UI. sorry i can't post any pics or code at this time. Bizarre, frustrating too!,

  2. #2
    Join Date
    Dec 2011
    Posts
    74
    Not all browsers fully support HTML 5 and may render pages differently.

  3. #3
    Join Date
    Dec 2005
    Posts
    2,984
    Quote Originally Posted by danielshill View Post
    Not all browsers fully support HTML 5 and may render pages differently.
    Sorry, this is incorrect. The HTML5 doctype is backwards compatible and therefore supported by all browsers. If you just changed the doctype (and didn't add any HTML5 semantic elements) then you must have a problem in your actual HTML code that was being 'corrected' (or corrected to your eye) in quirks mode in IE. Post your code, or preferably a link. Also, run it through the w3c validator and fix any non-trivial errors and you should be fine.

    Note that not all browsers properly support the semantic elements and can and will display them differently (without the appropriate polyfills) but no browser will barf simply by showing it an HTML5 doctype.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  4. #4
    Join Date
    Dec 2011
    Posts
    74
    You're completely right! My apologies

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles