PDA

View Full Version : CSS i.e. problems surfing to "http://" protocol!!!



log
October 28th, 2008, 02:03 PM
i've some css problems surfing in i.e.6 to "http://" protocol!!!
If i launch mypage.html from my computer the problems doesn't exist.
Why?

My code starts with

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
</head>
<body>
......

actionAction
October 28th, 2008, 02:22 PM
Could you clarify your question? That doesn't make a lot of sense to me...

CSS problems or connectivity problems. What are you trying to do?

theCodeBot
October 28th, 2008, 03:35 PM
Short answer: IE sucks.
Long answer: I honestly don't know what half-cocked idea Microsoft had on protocol recognition when they built the browser that made it do this.

But like the he said, is it just not loading the page, or is it not loading the stylesheet? Kind of important that we know that :)

log
October 29th, 2008, 05:31 AM
i had problems with iepngfix.htc resource to get full support for PNG-transparency in Internet Explorer 6.


Then, If i set behavior for div it work offline but do not work online.
div { behavior: url(iepngfix.htc); }


I ve tried to disable behavior on my css
/* div { behavior: url(iepngfix.htc); } */

and problems solve.

Author support redame, suggest to write this PHP code:


<?php

// Use this file in your CSS in place of the .HTC file if it works offline but not online.
// It will send the correct MIME type so that IE will execute the script correctly.

header('Content-type: text/x-component');
include('iepngfix.htc');

?>


But i've not understand how to write this.
And in .htaccess

AddType text/x-component .htc

theCodeBot
October 29th, 2008, 03:58 PM
PNG in IE? That's what you're trying to fix?
Don't waste your time. Set up a javascript to detect IE 6 and in that case, replace the PNG's with GIFS that have the effect where every other pixel is transparent to give the illusion of 50% transparency.
PNG works in IE7, has always worked in Mozilla, Opera, Safari, even Konqueror, why cater to the minority that causes you so much pain? Give them the low-quality version and warn them that they should be using Firefox or at LEAST IE7 (shudders at the thought of telling people to use that)