Post by Harshana85 » Sun Jun 19, 2011 10:59 pm

I cant notice why IE is always load in Quirks mode and it screw the alligments. I have even delete the,

Code: Select all

<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
and replace it with,

in header.tpl as i have searched in google and found if we have any thing before the doctype it will load in quirks mode.

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
when i change the document mode to IE7 or IE8 explicity with developer tools the page is fine. Only problem is the quirks mode and IE start in that mode default.

Thank You

Newbie

Posts

Joined
Wed Jun 15, 2011 4:33 pm

Post by Harshana85 » Mon Jun 20, 2011 12:52 pm

any idea pls

Newbie

Posts

Joined
Wed Jun 15, 2011 4:33 pm

Post by qahar » Mon Jun 20, 2011 4:28 pm

Try to use transitional. You can read this for reference.

Code: Select all

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

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by gloria » Mon Sep 19, 2011 3:10 pm

in index.php
insert
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

save these code

than open IE9/8,view F12 doc mode,u can see the mode is ie9/8/7 standards

Don't change any header.tpl files.I think this is the best way

Newbie

Posts

Joined
Tue May 31, 2011 8:56 pm

Post by tschiff » Sun Jan 29, 2012 7:27 am

Hey,

thank you so much gloria for this help.
now the ie is in the normal mode but i get the following error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/web19/html/index.php:3) in /var/www/web19/html/system/library/session.php on line 11ï

if i delete it again, ie is quirks mode again, but the error disappers.

can anyone help?

thanks!

Newbie

Posts

Joined
Wed Nov 23, 2011 2:36 am
Who is online

Users browsing this forum: No registered users and 44 guests