Discussion:
Is there a CSS version of the DISABLED or READONLY properties?
(too old to reply)
Scott McNair
2004-09-10 18:30:25 UTC
Permalink
I've got a page with two parts - an editable version, where people can
insert new records and make changes to existing records, and a read-only
version, where people can only view existing records. Rather than change
all the form objects individually, I'd like to set it so that all the items
can be toggled to read-only thru CSS. That way I can load the appropriate
CSS file at page-load.

Is there a way to do this?

Regards,
Scott
Bob Barrows [MVP]
2004-09-11 12:20:09 UTC
Permalink
Post by Scott McNair
I've got a page with two parts - an editable version, where people can
insert new records and make changes to existing records, and a
read-only version, where people can only view existing records.
Rather than change all the form objects individually, I'd like to set
it so that all the items can be toggled to read-only thru CSS. That
way I can load the appropriate CSS file at page-load.
Is there a way to do this?
Regards,
Scott
Here is the list of currently supported Style properties for INPUT elements
in IE:
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_text.asp
(just click the Styles tab)

In general, styles have more to do with appearance than behavior, so I don't
think this is do-able with css.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Loading...