Lightbox Doesn't Automatically Resize in Internet Explorer

This is because your DNN skin is not XHTML compliant. Add one of the following DOCTYPEs to your DNN skin:

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

One of the easiest ways to make this happen is by setting the Fallback Skin Doctype in the Host Settings of your site. However, this will make all skins that do not have a specific DOCTYPE assigned inherit the setting you change here. This may cause undesirable side effects when the skin is rendered.

This can also be done using an XML file in your skin directory. Simply name the XML file the same name as your skin file. For example, if your skin name is Portal.ascx, then the XML file will be Portal.doctype.xml. In this file, put your desired DOCTYPE, like so:

<SkinDocType><![CDATA[<!DOCTYPE XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">]]></SkinDocType>

More information about why the DOCTYPE is required can be found here: http://en.wikipedia.org/wiki/Quirks_mode

Last edited Apr 27, 2010 at 10:06 PM by hismightiness, version 4

Comments

No comments yet.