Author |
Message |
anna2119
Junior WebHelper
Joined: 18 Apr 2003
Posts: 4
|
Posted:
Fri Apr 18, 2003 8:43 pm (21 years ago) |
|
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 |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Apr 19, 2003 7:36 am (21 years ago) |
|
What do you have in your style sheet? You might need to include <p> tags in your CSS properties... |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Sat Apr 19, 2003 2:25 pm (21 years ago) |
|
can you give us the url of the page? |
________________________________ It's turtles all the way down... |
|
|
|
anna2119
Junior WebHelper
Joined: 18 Apr 2003
Posts: 4
|
Posted:
Mon Apr 21, 2003 5:36 pm (21 years ago) |
|
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. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon Apr 21, 2003 5:45 pm (21 years ago) |
|
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. |
________________________________
|
|
|
|
anna2119
Junior WebHelper
Joined: 18 Apr 2003
Posts: 4
|
Posted:
Mon Apr 21, 2003 6:38 pm (21 years ago) |
|
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 |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon Apr 21, 2003 6:51 pm (21 years ago) |
|
|
|
|
anna2119
Junior WebHelper
Joined: 18 Apr 2003
Posts: 4
|
Posted:
Mon Apr 21, 2003 7:48 pm (21 years ago) |
|
thanks!!!
it works now.
anna |
|
|
|
|
|
Page generation time: 0.134972 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme