By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,226 Members | 1,379 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,226 IT Pros & Developers. It's quick & easy.

NT / XP html difference

P: n/a
The following code in NT results in no border around the text box. On
XP, the border appears. I don't want a border, but I need the value
to post so I can't use a label. Does anyone have a solution?

<input type="text" id="bodytype" name="bodytype" readOnly="readOnly"
style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
Type">
Jul 20 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
Michele A. wrote:
I don't want a border, but I need the value
to post so I can't use a label.

<input type="text" id="bodytype" name="bodytype" readOnly="readOnly"
style='border-style: hidden'


I've never heard of border-style: hidden. You might try

border: none;

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #2

P: n/a
mi*****************@statefarm.com (Michele A.) wrote:
The following code in NT results in no border around the text box. On
XP, the border appears. I don't want a border, but I need the value
to post so I can't use a label. Does anyone have a solution?
What about a <input type="hidden"> for the data to be submitted and
plain text for the data to be displayed on screen. More reliable as
the readonly attribute is not going to work 100% of the time.
<input type="text" id="bodytype" name="bodytype" readOnly="readOnly"
style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
Type">


I presume you're talking about IE as the above removes the border in
Netscape 7.1 and Opera 7.23 but not in IE6 on WinXp.

border-style:hidden; border-width:0; is the best bet. The first works
in Opera, the second in IE and both of them in Gecko browsers.

Steve

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

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3

P: n/a
On Tue, 20 Jan 2004 20:19:27 GMT, Brian
<us*****@julietremblay.com.invalid-remove-this-part> wrote:
Michele A. wrote:
I don't want a border, but I need the value
to post so I can't use a label.

<input type="text" id="bodytype" name="bodytype" readOnly="readOnly"
style='border-style: hidden'


I've never heard of border-style: hidden.


Perhaps you could have checked the CSS spec? In this case however I
understand it to have the same effect as 'none'.
"8.5.3 Border style: 'border-top-style', 'border-right-style',
'border-bottom-style', 'border-left-style', and 'border-style'

The border style properties specify the line style of a box's border
(solid, double, dashed, etc.). The properties defined in this section
refer to the <border-style> value type, which make take one of the
following:

none
No border. This value forces the computed value of 'border-width'
to be '0'.
hidden
Same as 'none', except in terms of border conflict resolution for
table elements.
....

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #4

P: n/a
On 20 Jan 2004 11:45:54 -0800, Michele A.
<mi*****************@statefarm.com> wrote:
The following code in NT results in no border around the text box. On
XP, the border appears.
For this problem, it wasn't crucial, but in the future specify what
browser and what version, not the OS. That's going to be the critical
factor.
I don't want a border, but I need the value
to post so I can't use a label. Does anyone have a solution?

<input type="text" id="bodytype" name="bodytype" readOnly="readOnly"
style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
Type">

style="border: 0"
Jul 20 '05 #5

P: n/a
On Tue, 20 Jan 2004 20:19:27 GMT, Brian
<us*****@julietremblay.com.invalid-remove-this-part> wrote:
I've never heard of border-style: hidden.


http://www.w3.org/TR/CSS2/box.html#b...yle-properties

"hidden
Same as 'none', except in terms of border conflict resolution for table
elements."

I'd use border: 0, as she wants nothing at all. But I suspect that's naive
of me :\
Jul 20 '05 #6

P: n/a
Neal wrote:

For this problem, it wasn't crucial, but in the future specify what
browser and what version, not the OS. That's going to be the
critical factor.


With the caveat that when specifying MSIE 5, the OS must be specified
as well.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #7

P: n/a
Neal <ne*****@spamrcn.com> wrote in message news:<op**************@news.rcn.com>...
On 20 Jan 2004 11:45:54 -0800, Michele A.
<mi*****************@statefarm.com> wrote:
The following code in NT results in no border around the text box. On
XP, the border appears.


For this problem, it wasn't crucial, but in the future specify what
browser and what version, not the OS. That's going to be the critical
factor.
I don't want a border, but I need the value
to post so I can't use a label. Does anyone have a solution?

<input type="text" id="bodytype" name="bodytype" readOnly="readOnly"
style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
Type">

style="border: 0"

I used style='border-width: 0px'. It worked. I had previously tried
border-style: none to no avail. I found "hidden" during the huge
amount of research I did before I came here. I found no indications
this wouldn't work the same in IE 6.0 on NT and IE 6.0 on XP. Next
time I will be sure to specify browser and version. Thanks to
everyone for your help.
Jul 20 '05 #8

P: n/a
> > For this problem, it wasn't crucial, but in the future specify what
browser and what version, not the OS. That's going to be the
critical factor.
With the caveat that when specifying MSIE 5, the OS must be specified
as well.


Does this apply to the various flavors of windows OS's?

Jeff

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #9

P: n/a
Jeff Thies wrote:
in the future specify what browser and what version, not the
OS. That's going to be the critical factor.


With the caveat that when specifying MSIE 5, the OS must be
specified as well.


Does this apply to the various flavors of windows OS's?


Not nearly to the same level. Mozilla 1.3 for Win is not terribly
different than Mozilla 1.3 for Linux. They are both based on the same
rendering engine, Gecko.

MSIE 5 for Mac, however, was built from the ground up, using none of
the code form MSIE 4, and taking nothing from MSIE /win, version 5 or
otherwise. It is a completely different browser, with different, much
better, support for standards than its windows step sister.

In sum, if you say MSIE 6, we'll know you mean MSIE 6/Win. If you say
Mozilla 1.3, it won't matter much if the os is Linux or Win. But if
you say, "I'm having trouble getting float to work on MSIE 5," we'll
not know whether it's MSIE 5/Win, or MSIE 5/Mac, and the difference is
important. Capiche?
-- Brian (follow directions in my address to email me)
http://www.tsmchughs.com/


Your newsreader does not automatically trim my sig. That's too bad.
Consider trimming it manually next time?

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.