Jump to content
MakeWebGames

Making CSS compatible with IE!


radio_active

Recommended Posts

Hey there

Basically i'm wanting to make my site compatible with firefox aswell as Internet Explorer.

At the moment firefox is perfect but internet explorer, well i seriously don't know how its putting out some of the shit on it. Its putting out green and light blue colours in some of the tables where the colour codes do not exsist in the CSS stylesheet im running.

Can anyone here point me in the right direction with either support or a website showing how to make the CSS shes compatiable with both browsers?

Thankyou

Link to comment
Share on other sites

Re: Making CSS compatible with IE!

I ran into this problem before....I assume yo have the css already made and its just not working right in IE but works right in FF....

open your header...

find

 

<html>
<head>

 

add after

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

 

All it is, is you have to set standards for the pages..

And a thanks to Floydian cause he showed me this :-D

Link to comment
Share on other sites

Re: Making CSS compatible with IE!

 

I ran into this problem before....I assume yo have the css already made and its just not working right in IE but works right in FF....

open your header...

find

 

<html>
<head>

 

add after

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

 

All it is, is you have to set standards for the pages..

And a thanks to Floydian cause he showed me this :-D

Dont you mean add before?

And also replace

 

<html>

 

with

 

<html xmlns="http://www.w3.org/1999/xhtml">
Link to comment
Share on other sites

Re: Making CSS compatible with IE!

 

Well we will need to see some sort of css input and output i.e your header file including the styles for the layout

Well i am hardly going to post my CSS stylesheets and my header. :|

AlabamaHit, thankyou for your input but i already have page standards set yet it still throws out a completely messed up script in IE!

 

I also tried your input Tezza but didnt produce results.. :oops:

I believe i have to add extras onto my CSS stylesheets to make it compatiable with IE?

Link to comment
Share on other sites

Re: Making CSS compatible with IE!

 

am just saying their might be a problem in your header or css

Fair enough

Here is the beggining of my header.php

<?php
class headers {
function startheaders() {
global $ir, $set;
echo <<<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{$set['game_name']}</title>

<link rel="stylesheet" type="text/css" href="XXX" />
<script type="text/javascript">

var newwindow;

function poptastic(url){

newwindow=window.open(url,'name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,director

ies=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no');

if (window.focus) {newwindow.focus()}

}

</script>
<!--
[if IE] ><script type=text/javascript>document.location='www.mozilla.com/firefox/';</script> 
<![endif]
-->
</head>
<table width="90%" border="0" cellpadding="2" cellspacing="2" align="center" class="">
<tr>

<td class="center">
EOF;
}
function userdata($ir,$lv,$fm,$cm,$dosessh=1)
Link to comment
Share on other sites

Re: Making CSS compatible with IE!

Try this...

In YOUR header....

Move your linnk

so delete

 

<link rel="stylesheet" type="text/css" href="XXX" />

 

Now go down in your header.

Find

 

if(!$ir['email'])
{
die ("<body>Your account may be broken. Please mail [email][email protected][/email] stating your username and player ID.");
}

 

Now add after that..

 

echo '<link rel="stylesheet" type="text/css" href="XXX" />';

 

I know that dont sound right and weird but try it.....

Link to comment
Share on other sites

Re: Making CSS compatible with IE!

Download the web developers toolbar, (addon for firefox)

And there will be 3 icons on the right of the page.

If there is a cross, click it, and find out the errors on your page.

Or simply go to..... http://validator.w3.org/ - and valitade your html...

Or ..... http://jigsaw.w3.org/css-validator/ - to validate you CSS!

Link to comment
Share on other sites

Re: Making CSS compatible with IE!

Yes thats the thing, i have gone through my CSS file MANY times, i have checked every colour code and none match the colours showing in IE. My suspician is a colour code in the script which didnt have like a close bracket but even then it would probably show in Mozilla aswell so i mighty confused.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...