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

XP IE textbox style

P: n/a
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
Share this Question
Share on Google+
9 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.