3 replies [Last post]
imack
Offline
Regular
Oslo
Last seen: 17 years 19 weeks ago
Oslo
Timezone: GMT+2
Joined: 2004-09-15
Posts: 13
Points: 0

I have to display this site in 30 minutes.But it's no good when it doesn't show any Explorer (mac & pc).

It works fine in all the mozilla based browsers and Safari. Even on Linux. But no Explorer.

It validates in xhtml and css at w3.org.

http://www.tkc.no/lasse/index.php

co2
co2's picture
Offline
Leader
UK
Last seen: 13 years 41 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Urgent! CSS. Site not showing.

Try this instead:

<style type="text/css" media="screen">
@import url(scripts/complexLayout.css);
@import url(scripts/complex_hnav.css);
</style>

... QUICK! Shock Shock Wink

The next sentence is true. The previous sentence is false. Discuss...

co2
co2's picture
Offline
Leader
UK
Last seen: 13 years 41 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Urgent! CSS. Site not showing.

Just a bit of info on the above...

Looking quickly, it seems to be the thing that'll be causing your problem. You've got the url enclosed in quotemarks without the url() declaration. Whilst normally using quotemarks is okay with url declarations, certain browsers can't handle it correctly.

Thus, always stick with the format: url(css/styles.css) on all url declartions in CSS.

This is of course, if it's the problem you are experiencing.

Smile

The next sentence is true. The previous sentence is false. Discuss...

imack
Offline
Regular
Oslo
Last seen: 17 years 19 weeks ago
Oslo
Timezone: GMT+2
Joined: 2004-09-15
Posts: 13
Points: 0

Urgent! CSS. Site not showing.

Thanks there. I'm trying hard to get all the css as correct as possible, but it's fairly complex sometimes...

But the error was actually an Explorer bug.

When linking to an external java script file you can't end it with
/>, but must use ></script>
even though the first method is xhtml valid. This only goes for external javascripts, and not for css. Weird.

There is still a (3 different) problem with Explorer 6/win and 5.2/Mac, 5.2.3/Mac, but that's for tomorrow. Now I'm taking the night off.