I've got a form used to enter items to be listed in a web-based
catalog. In the past, I've instructed the users to enter I and B tags
(this goes back a while) into the textareas to get italics and bold
face in the catalog.
Now I've created a version of the page for IE that uses the
proprietary contentEditable ="true" attribute on a div , which enables
the user to enter text into the div and use Ctrl-I and Ctrl-B to
produce italics and boldfacing. (It permits other formatting too, but
I'm only interested in these two effects.) I'm using display: none on
the textarea. The div has an onblur that transfers its current
contents to the textarea.
I would like to use this single page on all browsers. On IE, I'd like
the div to appear and the textarea to be hidden, and vice versa on
other browsers. Suppose I assign the textarea to a class called "ifIE"
and the div to a class called "ifNotIE". What kind of kludge will
result in
.ifIE { display: block; }
.ifNotIE {display: none; }
in IE and
.ifIE { display: none; }
.ifNotIE {display: block; }
elsewhere?
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
catalog. In the past, I've instructed the users to enter I and B tags
(this goes back a while) into the textareas to get italics and bold
face in the catalog.
Now I've created a version of the page for IE that uses the
proprietary contentEditable ="true" attribute on a div , which enables
the user to enter text into the div and use Ctrl-I and Ctrl-B to
produce italics and boldfacing. (It permits other formatting too, but
I'm only interested in these two effects.) I'm using display: none on
the textarea. The div has an onblur that transfers its current
contents to the textarea.
I would like to use this single page on all browsers. On IE, I'd like
the div to appear and the textarea to be hidden, and vice versa on
other browsers. Suppose I assign the textarea to a class called "ifIE"
and the div to a class called "ifNotIE". What kind of kludge will
result in
.ifIE { display: block; }
.ifNotIE {display: none; }
in IE and
.ifIE { display: none; }
.ifNotIE {display: block; }
elsewhere?
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Comment