SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 24th, 2003, 09:25 PM
lionhearted2 lionhearted2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Boulder, CO
Posts: 17 lionhearted2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to lionhearted2
CSS Source File and Mime Type

I've coded a CSS file with class references for a floating window.

// Cascading Stylesheet
.clDescription {width:200px; left:0px; top:0px; font-family:verdana,arial,helvetica,sans-serif; overflow:hidden; border: 1px solid #999999; padding:3px; font-size:11px; background-color:#cccccc; layer-background-color:#cccccc;}
.clCaption {position:absolute; left:0px; top:0px; width:208px; height:15px; clip:rect(0px 208px 15px 0px); font-size:11px; font-family:verdana,arial,helvetica,sans-serif; background-color:#999999; layer-background-color:#999999;}

<style src=css_file.css></style>

The issue I've run into is this works fine in NS but not in IE.

I moved the CSS code into the html file

<style type=\"text/css\">
.clDescription {width:200px; left:0px; top:0px; font-family:verdana,arial,helvetica,sans-serif; overflow:hidden; border: 1px solid #999999; padding:3px; font-size:11px; background-color:#cccccc; layer-background-color:#cccccc;}
.clCaption {position:absolute; left:0px; top:0px; width:208px; height:15px; clip:rect(0px 208px 15px 0px); font-size:11px; font-family:verdana,arial,helvetica,sans-serif; background-color:#999999; layer-background-color:#999999;}
</style>

and it works fine in both NS and IE?

When I read up on the CSS file (O'Reilly HTML & XHTML) it said by default the CSS source file is read as a text/css mime type. Of course, I can code this type when it's in the html but how can I define a text/css mime type for a CSS source file?

Regards,

LEO

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Source File and Mime Type


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway