Author Topic: CSS Styles not working in I.E  (Read 8340 times)

0 Members and 1 Guest are viewing this topic.

Offline djm

  • Pre-Newbie
  • Posts: 9
    • View Profile
CSS Styles not working in I.E
« on: March 13, 2009, 04:10:05 PM »
Hi all!

My Gallery has decided it doesn't like IE and some of my CSS styles aren't working! I have recently edited my template so that the header points to my site header, but have left a direct link to the site style sheet as for some reason this is the only way it will work (even though it is linked in header.php)

This is my header.html from the template:

Code: [Select]
<head>
<title>The Woolpack | A traditional village pub in Almondbury, Huddersfield, West Yorkshire.</title>
<link rel="stylesheet" href="http://www.woolpack-almondbury.com/includes/style.css" />
</head>
<?php
$show_head 
1;
include(
"../includes/header.php");
?>


If you visit the gallery in Firefox (or anything except IE) at http://www.woolpack-almondbury.com/gallery/index.php you will see that it follows the style of all other pages within the website. But in IE it is aligned to the left, has some parts out of position and some font styles are wrong!

I have tried various hacks in the style sheet (at http://www.woolpack-almondbury.com/includes/style.css) but they have made no difference. As it is only the Gallery (the rest of the site is fine in IE) I have brought my problem here! Does anyone have any ideas?

Thanks,
Dan

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: CSS Styles not working in I.E
« Reply #1 on: March 13, 2009, 04:21:14 PM »
Hi,

Quote
any ideas?
yes, look in http://www.woolpack-almondbury.com/includes/style.css
You have a lot of mistakes in the css codes => cleanup the css an test page again....

- delete:
Code: [Select]
<?php
$show_head 
1;
include(
"../includes/header.php");
?>
- put "DOCTYPE" on top of the header.html


If you haven't any 4images copyright license, rebuild the copyright text with link



Kurt

Offline djm

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: CSS Styles not working in I.E
« Reply #2 on: March 13, 2009, 04:29:26 PM »
I have run the style sheet through the W3C validator and used the new valid CSS. And it has made no difference.

I have already tried all valid DOCTYPES, which should I use? And what do you want me to delete?

Thanks,
Dan

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: CSS Styles not working in I.E
« Reply #3 on: March 13, 2009, 04:35:44 PM »
 :?:
Code: [Select]
font-family: "Trebuchet MS" Verdana, Arial, sans-serif;
Code: [Select]
body > div#header { :?:

FF show no css error....

Offline djm

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: CSS Styles not working in I.E
« Reply #4 on: March 13, 2009, 04:44:47 PM »
Sorry I don't understand! But if it was a problem with the CSS then why does the rest of the site work ok?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline djm

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: CSS Styles not working in I.E
« Reply #6 on: March 16, 2009, 01:06:55 PM »
With a bit of messing around I have it working! Thanks for the help.