|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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> |
|
#3
|
|||
|
|||
|
I figured it out ... this is what my end code looks like ...
PHP Code:
I just had to set display: block; ... It's always something easy. |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
|||
|
|||
|
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? |
|
#6
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Netscape and the way it parses CSS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|