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 November 20th, 2003, 03:55 AM
JohJoh JohJoh is offline
Absent-Minded Professor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Plano, TX
Posts: 65 JohJoh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 44 m 47 sec
Reputation Power: 6
Send a message via AIM to JohJoh
Red face Netscape and the way it parses CSS

In the unending search to make my website cross-browser compatible, I found out that Netscape doesn't parse the width attribute in CSS. I thought maybe it was because I was using it within an a tag, but it also doesn't work with span div or anything else I try to apply it to ... I was wondering if there's a workaround for this so that people who use Netscape, God have mercy on them, can view it properly.

Thanks in advance.
__________________
Numb from all the things I've never heard.

Reply With Quote
  #2  
Old November 20th, 2003, 06:29 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 19 m 51 sec
Reputation Power: 548
since you don't show any code its hard to help,
but as for the span-tag, you normaly can't set width to inline elements, so widths applied to such elements should be ignored.
http://www.w3.org/TR/html4/struct/global.html#h-7.5.3


and always remeber to set a length unit, like em, %, px etc.
http://www.w3.org/TR/CSS2/syndata.html#length-units

ie.

.test { width:50%; }

<div class="test"> test</div>

Reply With Quote
  #3  
Old November 20th, 2003, 07:19 AM
JohJoh JohJoh is offline
Absent-Minded Professor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Plano, TX
Posts: 65 JohJoh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 44 m 47 sec
Reputation Power: 6
Send a message via AIM to JohJoh
I figured it out ... this is what my end code looks like ...

PHP Code:
<style>
body    {
    
fontnormal 8pt Verdanasans-serif !important;
    }
.
entry    {
    
displayblock;
    
font-size10pt;
    
width500px;
    
text-alignjustify;
    }
.
entry SPAN.title    {
            
displayblock;
            
font-size125%;
            
width500px;
            
padding3px;
            
border-bottom1px solid #000000;
            
}
.
entry P:first-letter    {
            
font-size125%;
            }
OL    {
    
counter-resetitem;
    }
LI    {
    
displayblock;
    }
LI:before    {
        
contentcounter(item". ";
        
counter-incrementitem;
        }
        </
style


I just had to set display: block; ... It's always something easy.

Reply With Quote
  #4  
Old November 20th, 2003, 07:40 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 19 m 51 sec
Reputation Power: 548
instead of a the span tag, you should use an appropriate h-tag.
as <span class="title"> doesn't have any semantical meaning.

and even though you can overrule a elements setting, ie set display:block on a inline element, you are encouraged not to.


you could aslo remove
LI {

display: block;

}

as li is block-level elements.

Reply With Quote
  #5  
Old November 20th, 2003, 10:09 AM
JohJoh JohJoh is offline
Absent-Minded Professor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Plano, TX
Posts: 65 JohJoh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 44 m 47 sec
Reputation Power: 6
Send a message via AIM to JohJoh
For some reason NS won't treat the LI as a block box, IE does it without the extra line, but NS is a sucky browser and parses stuff differently.

I'm anti-netscape.

But the thought never even crossed my mind to use the H tag. Any other suggestions as far as usage of tags goes?

Reply With Quote
  #6  
Old November 20th, 2003, 12:17 PM
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 19 m 51 sec
Reputation Power: 548
there might be, but as i don't see the rest of the code i can't say what

though you should be aware of setting an explicit font-size, it might cause problems for some users, instead of pt (which has little meaning on a screen) you should be using em or %,

you should aslo be aware using verdana,
it might be rendred differently on the drifferent browser/system
http://www.xs4all.nl/~sbpoley/webmatters/verdana.html


and ns/mozilla is not a sucky browser,
if you have been doing css for a while you understand that it is very good browser.
Comments on this post
JohJoh agrees: I understand now the errors of my ways. NS is truly not a sucky browser.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Netscape and the way it parses CSS


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