Forums | MacLife

Wide is the new black

You are not logged in.

#1 2008-07-19 1:22 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 43057
Website

Help with IE

I've had a couple people tell me now that my website doesn't load in IE.
It loads just fine in FireFox 2 and 3 - and I can not test IE.

It validates as xhtml 1.1

http://www.temptingevereptiles.com/

Yes - I know the design sucks. I don't care. Right now it costs more to host it than I can possibly earn selling from it, so now's not the time to critique my lack of design capability. I'll hire a web designer when the time is right.

I just want to know if there really is an IE problem and what in the world would be causing it.


I don't believe in gravity, the Earth just sucks.

Offline

 

#2 2008-07-19 1:48 am

matt
Screw it
Registered: 1999-09-16
Posts: 16187
Website

Re: Help with IE

Whenever I try to load that site in IE, rather than displaying the page, a window pops up asking what I want to do with the file.

For testing, I copied your page content to a page on my site, and the resulting page does display in IE, with one minor error. The boxes in the left navbar don't wrap all of the way around the lists they contain.

How is your index file named? It should be named "index.html".

Offline

 

#3 2008-07-19 1:54 am

Bat
The Man From Larrabee
Royal Wombat
From: Björk, Björk
Registered: 2001-05-14
Posts: 22892

Re: Help with IE

matt wrote:

Whenever I try to load that site in IE, rather than displaying the page, a window pops up asking what I want to do with the file.

Same here- 'Do I want to save the file, or look for a program to open it?' It comes up as an unknown file type.


Cogito ergo pwnum.

"Fire up a colortini, sit back, relax, and watch the pictures, now, as they fly through the air."

Offline

 

#4 2008-07-19 2:08 am

matt
Screw it
Registered: 1999-09-16
Posts: 16187
Website

Re: Help with IE

To fix the slight layout problems, I'd change a few things.

In your code, you've defined the sidebar's height as 100%. I would remove that line and instead set it's min-height to 100%.

Also, I'm not sure about the text-indent on the ul elements, but I would set these the left margin on all ul elements to zero

Code:

ul {
    margin-left: 0;
    }

and I would remove this line:

Code:

   text-indent: -2%;

After setting those things, the page should display correctly in IE, Firefox, Safari and Opera.

Offline

 

#5 2008-07-19 2:49 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 43057
Website

Re: Help with IE

Bat wrote:

matt wrote:

Whenever I try to load that site in IE, rather than displaying the page, a window pops up asking what I want to do with the file.

Same here- 'Do I want to save the file, or look for a program to open it?' It comes up as an unknown file type.

So the mime type being sent is incorrect.
This is how I'm sending the mime-type:

Code:

<?php
header("Content-Type: application/xhtml+xml; charset=utf-8");
?>

Is that incorrect?


I don't believe in gravity, the Earth just sucks.

Offline

 

#6 2008-07-19 3:33 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 43057
Website

Re: Help with IE

OK - to fix the IE issue I did the following:

Code:

<?php
$ua=$_SERVER['HTTP_USER_AGENT'];
// freaking IE
if (strpos($ua,'MSIE') === false)
  {
header("Content-Type: application/xhtml+xml; charset=utf-8");
   }
?>

Does it behave better now?

Last edited by resedit (2008-07-19 3:33 am)


I don't believe in gravity, the Earth just sucks.

Offline

 

#7 2008-07-19 3:44 am

matt
Screw it
Registered: 1999-09-16
Posts: 16187
Website

Re: Help with IE

Now it loads, but I would still make the css changes I posted above.

Offline

 

#8 2008-07-19 4:08 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 43057
Website

Re: Help with IE

Done. Thanks!


I don't believe in gravity, the Earth just sucks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson