HighDots Forums  

Setting textbox width for Netscape 4.7

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Setting textbox width for Netscape 4.7 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Nibler
 
Posts: n/a

Default Setting textbox width for Netscape 4.7 - 08-09-2004 , 02:28 PM






I'm trying to set the width of a textbox via a style sheet but it isn't working for Netscape 4.7

This is what the page looks like:
<form>
<input type="text" class="t1">
</form>


This is what the style sheet looks like:

..t1 {
width: 15;
}


It works in IE and Netscape 7 but not in Netscape 4. In NS4, it appears that the "width" property of a textbox doesn't work at all.... you have to use "size". I tried using "size" in the style sheet but it doesn't work.

Any advice would be greatly appreciated. Thanks!

--
Jeff Nibler

Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 02:58 PM






Jeff Nibler wrote:
Quote:
This is what the style sheet looks like:

.t1 {
width: 15;
}
15 what? Units are required for non-zero lengths.

<http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you>

Quote:
It works in IE and Netscape 7 but not in Netscape 4.
Netscape 4 is a browser with tiny market share and very poor support for
CSS. Many (probably most) authors who use CSS don't worry about the
appearance in NS4 and use the multiple media type or @import hack to hide
the styles from that browser.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
Steve Pugh
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 03:13 PM



"Jeff Nibler" <djnibler (AT) spam-me-not-hotmail (DOT) com> wrote:

Quote:
I'm trying to set the width of a textbox via a style sheet but it isn't working for Netscape 4.7
Netscape 4 has very poor CSS support. It supports virtually no styles
at all on input elements. And it frequently screws up what few styles
it does try to support.

Quote:
.t1 {
width: 15;
}
All non-zero lengths must have units.

Quote:
I tried using "size" in the style sheet but it doesn't work.
Of course not, size isn't a CSS property.

Best advice is to stop worrying about NN4 and let your pages go
unstyled in that relic.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #4  
Old   
Jeff Nibler
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 03:22 PM



Thanks for the reply. Unfortunately, I am forced (by clients) to write this
site with Netscape 4.7 in mind. For some reason, many of our clients still
use Netscape 4.7 in their operations and absolutely refuse to upgrade to
newer versions even though it is free to do so.

As for units... it doesn't matter. I have tried width: 15px; but that
doesn't work either.

--
Jeff Nibler



"David Dorward" <dorward (AT) yahoo (DOT) com> wrote

Quote:
Jeff Nibler wrote:
This is what the style sheet looks like:

.t1 {
width: 15;
}

15 what? Units are required for non-zero lengths.

http://diveintomark.org/archives/200..._wont_help_you

It works in IE and Netscape 7 but not in Netscape 4.

Netscape 4 is a browser with tiny market share and very poor support for
CSS. Many (probably most) authors who use CSS don't worry about the
appearance in NS4 and use the multiple media type or @import hack to hide
the styles from that browser.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/
Home is where the ~/.bashrc is



Reply With Quote
  #5  
Old   
Neal
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 04:35 PM



On Mon, 9 Aug 2004 13:22:44 -0700, Jeff Nibler
<djnibler (AT) spam-me-not-hotmail (DOT) com> wrote:

Quote:
Thanks for the reply. Unfortunately, I am forced (by clients) to write
this
site with Netscape 4.7 in mind. For some reason, many of our clients
still
use Netscape 4.7 in their operations and absolutely refuse to upgrade to
newer versions even though it is free to do so.

As for units... it doesn't matter. I have tried width: 15px; but that
doesn't work either.


Please don't put quoted material in a signature.

Tell them that the only way to support modern browsers AND NN4 is to set
up separate stylesheets and that's going to double the cost. Because
that's exactly what you'll have to do here.


Reply With Quote
  #6  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 04:41 PM



On Mon, 9 Aug 2004, Jeff Nibler wrote:

Quote:
Thanks for the reply.
Those who are genuinely grateful show their thanks by taking advice,
and even sometimes repaying the compliment by passing it on to others.

Quote:
Unfortunately, I am forced (by clients) to write this
site with Netscape 4.7 in mind.
I think we all have NN4.* "in mind". Sometimes, it's just not capable
of the more interesting parts of stylesheets, but that doesn't
necessarily mean you can't make content accessible (and, within
certain limits, even cosmetically attractive) if you put your mind to
it (and charge your customer accordingly, natch).

Quote:
As for units... it doesn't matter.
OH YES IT DOES...

Any client which does anything other than to ignore a non-zero value
without units is in a State of Sin as far as CSS is concerned. So if
it ever does what you want, it's a bug - and that's official.

Quote:
I have tried width: 15px; but that doesn't work either.
"doesn't work"? There's a lot of that about nowadays: lounging around
on the couch, drinking beer and watching TV all day.

Which is just a way of saying "don't you realise you just triggered a
standard response"? I recommend perusal of
http://www.catb.org/~esr/faqs/smart-questions.html

In this case, especially
http://www.catb.org/~esr/faqs/smart-...html#id2888580

good luck


Reply With Quote
  #7  
Old   
Spartanicus
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 04:52 PM



"Jeff Nibler" <djnibler (AT) spam-me-not-hotmail (DOT) com> wrote:

Please don't top post in this group [manually corrected this once] and
trim down the quoted bit to the minimum required. Only your sig should
follow your sig delimiter, quoting below a sig delimiter screws up other
people's ability to follow up properly.

Quote:
Netscape 4 is a browser with tiny market share and very poor support for
CSS. Many (probably most) authors who use CSS don't worry about the
appearance in NS4 and use the multiple media type or @import hack to hide
the styles from that browser.

Thanks for the reply. Unfortunately, I am forced (by clients) to write this
site with Netscape 4.7 in mind.
That doesn't mean that you have to give NS4 users styled content.
Properly marked up content sans styling will work fine for NS4 users.
Educate your client if they have a problem with that. If that fails,
consider not using CSS at all and create a tag soup site.

Quote:
As for units... it doesn't matter. I have tried width: 15px; but that
doesn't work either.
It does matter, even though it may not solve your immediate problem.

--
Spartanicus


Reply With Quote
  #8  
Old   
Jeff Nibler
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 05:05 PM



"Neal" <neal413 (AT) yahoo (DOT) com> wrote

Quote:
On Mon, 9 Aug 2004 13:22:44 -0700, Jeff Nibler
Tell them that the only way to support modern browsers AND NN4 is to set
up separate stylesheets and that's going to double the cost. Because
that's exactly what you'll have to do here.

That is exactly what I am trying to do. I have a js include (on each page)
that detects the browser version, then uses document.write to write the link
to the appropriate style sheet. The problem is that I cannot find a way to
set the width of a textbox in a style sheet for Nestscape 4.7. I've been
searching the web and usenet archives all day and am finding that Netscape
4.7 doesn't support any size/width attributes in CSS for a textbox. It is
looking like the only way around this is create two completely separate
pages; one for NS4 and one for all others. The NS4 page will have it's
textbox widths set via the "size" property directly on the page, and the
other version of the page will use a CSS. I will use ASP, CGI, or JavaScript
to automatically detect their browser version and display the appropriate
page. It is ridiculous, but I can't find any other way to accomplish the
desired result.

I hear a lot of people saying how obsolete Netscape 4.7 is, but you would
not believe how many large corporations still use it (especially for
intranets) and refuse to upgrade to a newer browser. The issue for many of
them is that their IS department would need to handle the roll-out which can
cost a lot of money depending on the size of the organization.





Reply With Quote
  #9  
Old   
Jeff Nibler
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 05:17 PM



"Alan J. Flavell" <flavell (AT) ph (DOT) gla.ac.uk> wrote

Quote:
As for units... it doesn't matter.

OH YES IT DOES...

Any client which does anything other than to ignore a non-zero value
without units is in a State of Sin as far as CSS is concerned. So if
it ever does what you want, it's a bug - and that's official.
I have tried width: 15px; but that doesn't work either.

"doesn't work"? There's a lot of that about nowadays: lounging around
on the couch, drinking beer and watching TV all day.

Which is just a way of saying "don't you realise you just triggered a
standard response"? I recommend perusal of
http://www.catb.org/~esr/faqs/smart-questions.html

In this case, especially
http://www.catb.org/~esr/faqs/smart-...html#id2888580
When I said "it doesn't matter" and "doesn't work," I was referring to the
specific behavior I am experiencing with Netscape 4.7. Your links refer to
someone who asks a question with no information. If you read my original
question, you would understand that in my reply, "doesn't work" means
"Netscape doesn't change the width of a text box when I use width: 15 and it
ALSO doesn't change the width of the textbox when I use width: 15px," which
is what I meant by "doesn't matter." If I had said, "it doesn't work"
without first giving a detailed explanation (in my original post), then I
would understand your flame. But thanks anyway.

Jeff






Reply With Quote
  #10  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: Setting textbox width for Netscape 4.7 - 08-09-2004 , 05:51 PM



On Mon, 9 Aug 2004 22:41:17 +0100, Alan J. Flavell wrote:

('doesn't work')
They missed my favorite response!
"Flog it with a whip".. ;-)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.