Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Greyhound 102 posts 124 karma points
    Jan 12, 2012 @ 23:53
    Greyhound
    0

    Document Type Declaration

    I wasnt quite sure where to put this question but here goes.

    I'm using JQuery FancyZoom for a lightbox effect.

    I've been scratching my head as to why the little "cross" button wont appear in IE but will appear for all other browsers in my Umbraco site.

    I ran a couple of tests and have found that if I remove the document declaration :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    It works ok but then my page is obviosuly and seriously messed up.

    Has anyone else come across this before?

    Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 13, 2012 @ 00:04
    Jan Skovgaard
    0

    Hi Greyhound

    Is there any place where the site can be viewed online?

    When you remove the doctype the browsers will not render your website in standars mode but in quirks mode, which basically means there trying to guess what you intended the site should look like.

    So don't omit the doctype declaration it will cause more problems than it solves :)

    Are you certain it's not just a styling issue where you need to declare dimensions like width and height? Or perhaps clear some css floats?

    Have you tried to validate the markup to make sure it's not caused by some invalid markup?

    /Jan

  • Greyhound 102 posts 124 karma points
    Jan 13, 2012 @ 11:14
    Greyhound
    0

    Hi Jan,

    The Url is : http://www.gcdemos3.co.uk/chairs.aspx

    It works ok in Mozilla.

    In IE, the "Close" button should appear top left. If I right click and choose properties where the close button image should be appearing, then the image appears.

    /Ben

  • alimac 182 posts 371 karma points
    Jan 13, 2012 @ 11:25
    alimac
    0

    Just had a look in ie7 and 9 and it appears top left for me... although the X sits inside the image rather than on the edge, as it does in mozilla/chrome.

  • Greyhound 102 posts 124 karma points
    Jan 13, 2012 @ 11:34
    Greyhound
    0

    @alimac, thank you for confirming that.

    Its look as though the problem is specific to IE8

     

     

Please Sign in or register to post replies

Write your reply to:

Draft