|
Posted by Jukka K. Korpela on 12/07/05 22:08
"Steve Pugh" <steve.grumpy@gmail.com> wrote:
>> <span id="story_new" contentEditable="true" style="{text-align:left;
>> width:200px; height:200px; border:buttonface 1px solid;
>> border-color:black; overflow-y:auto; overflow-x:auto;}">
>
> No problem with it being editable,
Apart from contentEditable being an IE-only attribute, you mean?
> but problems with your CSS.
The element also lacks a closing tag and sense. We haven't been told what the
big idea is, and we cannot see it in context, but it's apparently an attempt
at creating some interactivity with wrong tools. It's probably a broken
imitation of <textarea>.
In addition to the technicalities you mentioned, using px in dimensioning a
piece of text is wrong approach, border:buttonface 1px solid is undefined by
CSS specs, and so are overflow-x and overflow-y.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Navigation:
[Reply to this message]
|