radio_active Posted November 18, 2008 Posted November 18, 2008 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 Quote
shedh Posted November 18, 2008 Posted November 18, 2008 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 Quote
AlabamaHit Posted November 18, 2008 Posted November 18, 2008 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 Quote
Tezza` Posted November 18, 2008 Posted November 18, 2008 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"> Quote
AlabamaHit Posted November 18, 2008 Posted November 18, 2008 Re: Making CSS compatible with IE! :mrgreen: opps And the html change, didnt know that myself, I didnt have to do it :-D But thanks for info thats going into the notebook 8-) Quote
radio_active Posted November 18, 2008 Author Posted November 18, 2008 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? Quote
shedh Posted November 18, 2008 Posted November 18, 2008 Re: Making CSS compatible with IE! am just saying their might be a problem in your header or css Quote
radio_active Posted November 18, 2008 Author Posted November 18, 2008 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) Quote
AlabamaHit Posted November 18, 2008 Posted November 18, 2008 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..... Quote
radio_active Posted November 18, 2008 Author Posted November 18, 2008 Re: Making CSS compatible with IE! Surprisingly enough that made the tables correct yet the colours are still way messed up! Quote
AlabamaHit Posted November 18, 2008 Posted November 18, 2008 Re: Making CSS compatible with IE! The colors should be in your CSS file.......... Quote
Tezza` Posted November 18, 2008 Posted November 18, 2008 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! Quote
shedh Posted November 18, 2008 Posted November 18, 2008 Re: Making CSS compatible with IE! is it possible for a link to were this problem is accuring? Quote
radio_active Posted November 18, 2008 Author Posted November 18, 2008 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. Quote
Tezza` Posted November 18, 2008 Posted November 18, 2008 Re: Making CSS compatible with IE! Like i said... VALIDATE it. Quote
radio_active Posted November 18, 2008 Author Posted November 18, 2008 Re: Making CSS compatible with IE! Tezza, the CSS link you gave was very helpful and helped but its just the one last thing. The light blue colour in the area of where everything shows up such as explore or gangs etc. (not the mainmenu or the header section) Thats still this yuk light blue! Quote
radio_active Posted November 19, 2008 Author Posted November 19, 2008 Re: Making CSS compatible with IE! Succesfully Fixed. The last problem was in the header. It was declaring the Background colour after the mainmenu to be ##XXXXXX due to scrappy code. Cleaned up and working! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.