473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

NT / XP html difference

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
9 1975
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
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
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
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
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
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
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
> > 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: R. Rajesh Jeba Anbiah | last post by:
I would like to know what HTML standard will be better for PHP webapplications? Right now, I use HTML 4.01 Transitional. And like to know what *you* PHP programmers prefer? and which is good? TIA....
32
by: Cornel Bicutzi | last post by:
Hello, What is the difference between HTML and XHTML... Thanks, ------------------------------------------------------------------------ IT Interview Questions :...
8
by: Alan Silver | last post by:
Hello, ASP.NET newbie here so please be nice ;-) I'm reading ASP.NET Unleashed, following a recommendation here. I am a little confused about the difference between HTML controls and web...
1
by: Beffmans | last post by:
Hi I work with .net 1.1 and i wanted to know the difference between a html table and a <asp:table>? Which one is better for a consistent layout of your asp.net pages? ch Beffmans
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
5
by: Steve Franks | last post by:
Is there any way to tell VS to automatically reformat my HTML view to add lines and tabs/spacing to create nicely formatted HTML in the viewer? I am using Visual Studio 2005 .NET Beta 2 For...
1
by: Tatyana | last post by:
Hello, I was wondering if anybody can help to distinguish the difference (for ASP.NET pages) between I've got JavaScript Menu which I have to plug-in to the master page.
8
by: rn5a | last post by:
I have a HTML page named Index.html which is divided into 3 frames. The URL of 2 of the frames are HTML pages but the 3rd frame houses a ASP page. Now when I go to Windows Explorer, navigate to...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
12
by: RoLo | last post by:
Is there anyway to use the html document on IE as an XML document?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.