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, 06:53 PM
craig34's Avatar
craig34 craig34 is offline
Webmaster Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Woburn, MA
Posts: 126 craig34 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 39 sec
Reputation Power: 9
CSS text error in Netscape

I have a CSS class to make the font larger, yellowish, and bold for certain sections of text. Of course, it works fine in IE 5+, but not in NS 4.X, haven't checked other versions of NS. I don't think I'm ready for the headache.

CSS
-----
.indexTitle{
color : #ff9900;
font-family : verdana,helvetica,sans-serif;
font-size : medium;
font-weight : bold;
}

HTML
-------
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="2" class="indexTitle"><?php echo $title; ?></td></tr>
</table>

It does use PHP, but I can't imagine that would present a problem. Basically, this will not work at all in NS 4.X, it renders the text like the text looks on the rest of the site.
__________________
Craig Anderson

Reply With Quote
  #2  
Old July 24th, 2003, 07:24 PM
panhead490 panhead490 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 51 panhead490 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 7 m 38 sec
Reputation Power: 6
Send a message via AIM to panhead490
This is linked from w3c on css bugs: http://www.css.nu/pointers/bugs.html I wish I could give you some better help but css support is quite patchy with version 4 of almost all browsers. If support for NN4.x is required you may have to use the <font> tag...

Hope this helps..

panhead490

Reply With Quote
  #3  
Old July 24th, 2003, 07:47 PM
craig34's Avatar
craig34 craig34 is offline
Webmaster Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Woburn, MA
Posts: 126 craig34 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 39 sec
Reputation Power: 9
I used to develop quite a bit back in the day, but I've been out of the game for a bit. Is it not worth developing for NN 4.X? What should I support in terms of browsers besides IE 5,6?

Reply With Quote
  #4  
Old July 24th, 2003, 08:13 PM
panhead490 panhead490 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 51 panhead490 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 7 m 38 sec
Reputation Power: 6
Send a message via AIM to panhead490
You'll get many different responses to that question. Anything from "Screw netscape..." to "Put in the extra work and do it right..."

I fall in the middle. I currently develop for a company (html/css/php/flash) and though there's no 'standard' we try and hit IE 5/6, Netscape 7 (Mozilla 1.2+), and Opera 7. Don't forget to try different platforms...it can be a pain but IE in macs (a fairly large percentage that are often forgotten about) can be quite quirky.

So a short reply would be to say 'sod off' to NN 4.x? But do not neglect other important browsers.

One last thing, *an approximation* can usually be found (my experience) by testing with IE 5/6 and Netscape 7 (or Mozilla 1.2+) on Windows. You hit almost everybody that way, but I've noticed some issues with advanced html/dhtml not working on macs (IE).

It's quite a bit to think about...you can develop for only IE 5/6 but still lose a significant number of users (10-15%). It's more work to test on multiple platforms and multiple browsers but it definitely shows a commitment to excellence in terms of coding.

peace,
panhead490

Last edited by panhead490 : July 24th, 2003 at 08:17 PM.

Reply With Quote
  #5  
Old July 25th, 2003, 07:30 AM
jerom jerom is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Posts: 1,014 jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level)jerom User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 34 m 25 sec
Reputation Power: 9
Going back to the original question:
A simple page with just the code you posted does show exactly as you intended in the NS4 browsers on my machines (a bold orange verdana). The problem appears to be somewhere else in your code...

Hope this helps,
Jeroen

Reply With Quote
  #6  
Old July 25th, 2003, 09:37 AM
craig34's Avatar
craig34 craig34 is offline
Webmaster Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Woburn, MA
Posts: 126 craig34 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 39 sec
Reputation Power: 9
Quote:
It's more work to test on multiple platforms and multiple browsers but it definitely shows a commitment to excellence in terms of coding.


Is there a good way to test on multiple platforms, other than having those computers actually setup at my location? Maybe some online utility or an actual program?

Reply With Quote
  #7  
Old July 25th, 2003, 10:06 AM
craig34's Avatar
craig34 craig34 is offline
Webmaster Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Woburn, MA
Posts: 126 craig34 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 39 sec
Reputation Power: 9
Quote:
The problem appears to be somewhere else in your code...


I figured out that if I just put the style in the actual page (without using an include line), it works perfectly. Could there be something wrong with the way that I include my style sheets? I know it works in IE, but maybe it needs to look different for NS?

<SCRIPT LANGUAGE="JavaScript" type="text/javascript"> <!--
if ((navigator.appName == "Microsoft Internet Explorer")) {
document.write("<LINK REL=stylesheet HREF='http://www.1aauto.com/ie.css' TYPE='text/css'>");
} else {
document.write("<LINK REL=stylesheet HREF='http://www.1aauto.com/nn.css' TYPE='text/css'>");
}
// --> </SCRIPT>

Last edited by craig34 : July 25th, 2003 at 10:12 AM.

Reply With Quote
  #8  
Old July 25th, 2003, 10:59 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,622 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 2 h 18 m 25 sec
Reputation Power: 548
Quote:
Originally posted by craig34
Is there a good way to test on multiple platforms, other than having those computers actually setup at my location? Maybe some online utility or an actual program?


you got browsercam.com
you can get screencaptures from a several browsers on several OS,
note: it is a payservice,

Reply With Quote
  #9  
Old July 25th, 2003, 11:15 AM
craig34's Avatar
craig34 craig34 is offline
Webmaster Extraordinaire
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Location: Woburn, MA
Posts: 126 craig34 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 39 sec
Reputation Power: 9
Alright everyone, as a closure of sorts, I've found the problem. I had put a comment at the top of my Netscape style sheet, but apparently, you cannot comment using // in style sheets. It messed everything up. God that's annoying.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS text error in Netscape


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 4 hosted by Hostway