4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 CSS and Netscape 7
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
anna2119
Junior WebHelper
Junior WebHelper


Joined: 18 Apr 2003
Posts: 4

PostPosted: Fri Apr 18, 2003 8:43 pm (21 years ago) Reply with QuoteBack to Top

Hi,

I'm currently using asp to generate a .css file whose font sizes vary depending on the user's browser (IE or Netscape) and whether they want large or small fonts. Everything is working properly in IE and Netscape 4.7 and 6.2. That is when I select large fonts, larger fonts are used and when I select smaller fonts, smaller fonts are used. However I can't seem to get it to work in Netscape 7.0. I've noticed that while other html elements such as <a> tags have increased their size, text in <p> tags don't. Does anyone know why?

Thanks,
Anna
OfflineView User's ProfileFind all posts by anna2119Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat Apr 19, 2003 7:36 am (21 years ago) Reply with QuoteBack to Top

What do you have in your style sheet? You might need to include <p> tags in your CSS properties... Question

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Sat Apr 19, 2003 2:25 pm (21 years ago) Reply with QuoteBack to Top

can you give us the url of the page?

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
anna2119
Junior WebHelper
Junior WebHelper


Joined: 18 Apr 2003
Posts: 4

PostPosted: Mon Apr 21, 2003 5:36 pm (21 years ago) Reply with QuoteBack to Top

hi,

with more testing i realized that nothing on the stylesheet is being used and not just the <p> tags. I think it is because my stylesheet has a .asp extension. can someone verify whether it is a requirement for NS 7 that stylesheets have a .css extension?

thanks,
anna

btw it's an intranet so i can't give out the link.
OfflineView User's ProfileFind all posts by anna2119Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon Apr 21, 2003 5:45 pm (21 years ago) Reply with QuoteBack to Top

Is your ASP script sending a "text/css" content type? If not Netscape will probably have trouble... In PHP this is how it is done:
Code:
<?php header ('Content-type: text/css'); ?>
You'll have to adapt that for ASP.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
anna2119
Junior WebHelper
Junior WebHelper


Joined: 18 Apr 2003
Posts: 4

PostPosted: Mon Apr 21, 2003 6:38 pm (21 years ago) Reply with QuoteBack to Top

hi,

do you mean on the .asp file or within the file where i include the path to the .asp file? currently i have the following line in the latter file:

<link href="/stylesheet2.asp" rel="stylesheet" type="text/css" />

thanks,
anna
OfflineView User's ProfileFind all posts by anna2119Send Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Mon Apr 21, 2003 6:51 pm (21 years ago) Reply with QuoteBack to Top

You're going to have to edit your ASP file to output a "Content-type: text/css" header. However since I'm not familiar with ASP I don't know how you'd do that. Confused

This looks to be the way: http://www.w3schools.com/asp/showasp.asp?filename=demo_contenttype

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
anna2119
Junior WebHelper
Junior WebHelper


Joined: 18 Apr 2003
Posts: 4

PostPosted: Mon Apr 21, 2003 7:48 pm (21 years ago) Reply with QuoteBack to Top

thanks!!!
it works now. Very Happy

anna
OfflineView User's ProfileFind all posts by anna2119Send Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.125487 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme