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

How to undo border-style for input boxes

I work with Interwoven TeamSite in an environment where I do not have access
to customise the default stylesheet, so the only option available to me is
to specify an additional stylesheet wherein I can add further
customisations.

My problem is that the master stylesheet, which I can not edit or remove,
includes a CSS selector for all input elements such that the border is thus:

border: 1px #cccccc solid;

Is there a way I can specify in my own stylesheet, which is the last one
referred to, a way to set the style for input boxes back to the default -ie,
so that input boxes appear "sunken". I've tried everything and nothing seems
to negate the original style :-( Ideally, I'd like to be able to do this:

border-style: sunken;

But this doesn't appear to be in the CSS specification. The only reason I
want to do this is to distinguish input boxes from the zillions of other
grey solid lines in TeamSite's templates (whoever designed the interface for
TeamSite 6 should be shot for forcing everybody to use a stylesheet that is
so incomprehensible!)

Any ideas?
Jul 20 '05 #1
3 28999
"Frostillicus" <fr****@nilspamos.iinet.net.au> writes:
My problem is that the master stylesheet, which I can not edit or remove,
includes a CSS selector for all input elements such that the border is thus:

border: 1px #cccccc solid;

Is there a way I can specify in my own stylesheet, which is the last one
referred to, a way to set the style for input boxes back to the default -ie,
so that input boxes appear "sunken". I've tried everything and nothing seems
to negate the original style :-( Ideally, I'd like to be able to do this:

border-style: sunken;
border-style: inset; you mean?
But this doesn't appear to be in the CSS specification.


Not by that name.

You can't tell it to go back to the browser default via an additional
stylesheet, but that would probably do.

You may also need to do
html input { }
rather than
input { }
depending on how the stylesheets are set up to work around specificity
issues.

--
Chris
Jul 20 '05 #2
"Frostillicus" <fr****@nilspamos.iinet.net.au> wrote:
I work with Interwoven TeamSite
Are we supposed to know what this is?
My problem is that the master stylesheet, which I can not edit or remove,
includes a CSS selector for all input elements such that the border is thus:

border: 1px #cccccc solid;

Is there a way I can specify in my own stylesheet, which is the last one
referred to, a way to set the style for input boxes back to the default -ie,
so that input boxes appear "sunken".
Depends on your UA, it's possible with Opera, not with IE or Moz.
I've tried everything and nothing seems
to negate the original style :-(
Assuming that you are using a user stylesheet: add "!important" to your
user style rule.
Ideally, I'd like to be able to do this:

border-style: sunken;


border:2px inset !important

But this doesn't result in the original unstyled look, CSS inset/outset
borders are rather ugly.

With Opera it's simple: "border:none !important", and you get the
original pretty "sunken" borders back.

--
Spartanicus
Jul 20 '05 #3
> border-style: inset; you mean?
But this doesn't appear to be in the CSS specification.


Not by that name.

You can't tell it to go back to the browser default via an additional
stylesheet, but that would probably do.

You may also need to do
html input { }
rather than
input { }
depending on how the stylesheets are set up to work around specificity
issues.


html input {} or input {} didn't seem to cancel out previous styles but you
were onto something about the inset. Here's what I ended up doing to make it
look right:

input {
border: 2px #ffffff inset;
}

inset by itself was still picking up on the 1px border size from previous
directives so the 2px and #ffffff produces a perfect facsimile in IE and an
almost 100% perfect match in Firefox (it's so close you almost can't tell,
except when flicking between the two very quickly).

Thanks HEAPS :-)
Jul 20 '05 #4

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

Similar topics

7
by: Marek Mänd | last post by:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions draw a nasty interiour border, which doesnt go away though I have on TD's css border:none set. Is it something wrong with my...
2
by: Lyn | last post by:
Hi, I have a text control on a form which is bound to table field StartDate which is in Date format. When updating the table record via the form, any data entered into the StartDate control is...
5
by: Lyn | last post by:
Hi, In the BeforeUpdate event of a textbox control I have the following simplified code:- Private Sub StartDate_BeforeUpdate(Cancel As Integer) MsgBox "StartDate Error -- Please Check and...
0
by: Wiktor Zychla | last post by:
I am still trying to get the Undo function work on Internet Explorer editor hosted as activex in my c# application. Some time ago I've found a note at msdn that says "undo is not supported". I...
3
by: babylon | last post by:
any facilities in csharp that can help me implmenting undo/redo in my application? thx
2
by: Christian H | last post by:
Hello, I've tried to find information about how to implement an Undo/Redo pattern. This article describes such a pattern: http://www.codeproject.com/csharp/PcObjectUndo.asp , but is a little bit...
3
by: GoogleEyeJoe | last post by:
Dear ladies and gents, I'm trying to determine whether the .NET Framework implements a means of transactional processing without the need for a database. Essentially, I'd like to enlist...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, Does vb2005 have a built-in UnDo feature / object for applications so that I can undo actions like other windows apps? Or do I have to write my own UnDo routine? If vb2005 does have a...
0
by: wizard of oz | last post by:
Hi all, I'm extending an Abstract Styled Document associated with a JTextPanel to implement a syntax highlighting editor. This is all working just fine - except for undo / redo. The problem...
1
by: Jeremy | last post by:
I'm working on an application that does some DOM manipulation. I want to add a mechanism for "Undo" so that the user can revert to the previous state after performing a mistaken action. Simple...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.