473,387 Members | 1,379 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,387 software developers and data experts.

XP IE textbox style

hello,
I am in asp.net and have a form with an asp textbox. I specify a
cssclass for the text box having the following:
..Textbox
{
font-size: 8pt;
list-style-type: none;
background-color: white;
text-decoration: none;
}

In XP, the attribute 'background-color: white;' causes the textbox to
loose its nice XP style border. If I take out that line it stays nice
and uses the rest of my style.

Any idea why this is or how to overcome?

Thanks!
Jeff

Nov 30 '05 #1
9 14082
uj*****@gmail.com wrote:

I am in asp.net [...]
Sounds uncomfortable.
In XP, the attribute 'background-color: white;' causes the textbox to
loose its nice XP style border. If I take out that line it stays nice
and uses the rest of my style.

Any idea why this is or how to overcome?

Specify a border style?
What does an XP border look like?
How about an URL?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 30 '05 #2
begin quotation
from uj*****@gmail.com <uj*****@gmail.com>
in message <11*********************@g44g2000cwa.googlegroups. com>
posted at 2005-11-30T15:02
In XP, the attribute 'background-color: white;' causes the textbox to
loose its nice XP style border. If I take out that line it stays nice
and uses the rest of my style.


You assume everyone reading will know what an XP is like magic. That's
not a wise assumption.

--
___ _ _____ |*|
/ __| |/ / _ \ |*| Shawn K. Quinn
\__ \ ' < (_) | |*| sk*****@speakeasy.net
|___/_|\_\__\_\ |*| Houston, TX, USA
Dec 1 '05 #3
IE 6.0 and XP as in windows XP.. Ok, prerequisite for answering my
question. You must understand what I am talking about and know the
answer or have a half intelligent response that may lead me to an
answer.

Jim, drop a textbox into a form in .net and look at the "look" of the
textbox (mind you, only IE in XP, it's the XP styling"). If you add a
css to that textbox and that css has a background color it reverts to
the look of a standard (pre XP) looking textbox... You'll have to try
it for yourself. (I guess you wouldn't nes. need .net...)

Dec 6 '05 #4
In article <11**********************@g44g2000cwa.googlegroups .com>,
uj*****@gmail.com wrote:
You must understand what I am talking about and know the
answer or have a half intelligent response that may lead me to an
answer.


Must? Forgive me, but I don't even know what the *question* was. What I
have posted is at least half-intelligent.
Must has to do with horny elephants.
<news:news.announce.newusers> or
<http://oakroadsystems.com/genl/unice.htm> or
<http://www.safalra.com/special/googlegroupsreply/>
are links related to your post and my answer to it.

leo

--
<http://web0.greatbasin.net/~leo/>
Dec 6 '05 #5
Leonard Blaisdell wrote:
In article
<11**********************@g44g2000cwa.googlegroups .com>,
uj*****@gmail.com wrote:
You must understand what I am talking about and know the
answer or have a half intelligent response that may lead me to
an answer.


Must? Forgive me, but I don't even know what the *question* was.
What I have posted is at least half-intelligent.
Must has to do with horny elephants.
<news:news.announce.newusers> or
<http://oakroadsystems.com/genl/unice.htm> or
<http://www.safalra.com/special/googlegroupsreply/>
are links related to your post and my answer to it.


The link in my sig addresses that, as well. :)

--
Blinky
Killing all Google Groups posts.
http://blinkynet.net/comp/uip5.html
Dec 6 '05 #6
In article <Xn******************@130.133.1.4>,
Blinky the Shark <no*****@box.invalid> wrote:
Leonard Blaisdell wrote:

<news:news.announce.newusers> or
<http://oakroadsystems.com/genl/unice.htm> or
<http://www.safalra.com/special/googlegroupsreply/>
are links related to your post and my answer to it.


The link in my sig addresses that, as well. :)


Noted. I ought to get a list together like brucie would. And then just
paste it in response to every googlegroups hanging post. But I'm not
typically confrontational. I think the *must* set me off.
But I just started the list ;-)

leo

--
<http://web0.greatbasin.net/~leo/>
Dec 6 '05 #7
So.. If the question makes no sense to you then you "must" not know the
answer... If the question does make sense then you are worthy of
answering. Don't waste my time.

Dec 6 '05 #8
uj*****@gmail.com wrote:
I am in asp.net and have a form with an asp textbox.
Irrelevant. It's the final HTML and CSS that matters not what server
side processes you use to generate it.
I specify a
cssclass for the text box having the following:
.Textbox
{
font-size: 8pt;
list-style-type: none;
background-color: white;
text-decoration: none;
}

In XP, the attribute 'background-color: white;' causes the textbox to
loose its nice XP style border. If I take out that line it stays nice
and uses the rest of my style.

Any idea why this is or how to overcome?


The Win XP style border on text inputs is roughly equivalent to:
border: 1px solid #A5ACB2; padding: 2px;

(The colour may vary with the user's chosen XP colour scheme, so
instead you can try to work out which, if any, of the values at
http://www.w3.org/TR/CSS21/ui.html#system-colors is used.)

So add those styles and your border will look like the default XP
border even for users not using XP (or XP users who use the classic
styling rather than the XP styling).

Now, considering your attitude elsewhere in this thread, this is likely
to be the last time I or anyone else here will help you.

Steve

Dec 6 '05 #9
Ah, finally, thanks for replying Steve. My concern was not related to,
as much, the server side stuff, more why the textbox looses its
formatting when the background color attribute is applied. Does it
loose the other styling if you add "background-color: white;" also or
is it just me?
Thanks.
Jeff

Dec 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rodrigo DeJuana | last post by:
Howdy, I'm new to this .net stuff and really have little to no training. Im trying to create a new page for a web form, so i have been pretty much jsut coping code. I having some issue with...
1
by: Shilpi Chaudhry | last post by:
I have a forloop which I use to create textboxes - but unfortunately all of them have the same ids - I need to assign different ids to these textboxes creeated in the loop so that I can retrieve...
3
by: Henry | last post by:
Hi. I've also posted this at another discussion board and here is the original question. ------------------------- "I have this problem and I don't know what I can do. First of all, I have a...
8
by: tshad | last post by:
I cannot seem to get the asp:textbox to use classes. Style works fine. I am trying to set the textbox to act like a label in some instance so it doesn't have a border, readonly and the background...
2
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
10
by: aarepasky | last post by:
I am using ASP Web 2005 express. I created the user control below and I am listing the html code. I have 2 textboxes. One is txtCompanyName. The main page has 2 panels on it and a button. ...
8
by: nil | last post by:
Hello all, It's urgent... i want to add autocomplete textbox facility in my application like google. as you type it suggests option to the user..i want the same kind of facility...i know i...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
0
KalariaNitya
by: KalariaNitya | last post by:
Hello, could anybody help me? i have gridview, inside gridview i have one Update button & textbox update button update the quantity entered in textbox. i want to update the quantity on textbox on...
2
by: mrutyunjaya | last post by:
hello, i have two textbox column and one button control in gridvie when i click button it will ask plese enter price in first textbox . when enter values it is asking again. how to pass...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.