Thread: Styles for forms and elements
Results 1 to 6 of 6
Related
-
Moving elements Forum: Javascript Forum
Replies: 4 -
CSS, styles and PHP Forum: CSS Forum
Replies: 1 -
Block elements within inline elements Forum: CSS Forum
Replies: 6 -
tekno elements Forum: Show it off!
Replies: 7
-
08-02-2002, 10:14 AM #1
Styles for forms and elements
Hey. right now I have a form. One area is a text area. However it will already contain text and i'd like to make it non-writeable. I've seen thisdone in other places though I cannot recall where and am pretty sure it was a CSS value which defined weather or not I could write to it
-
08-03-2002, 06:40 AM #2
Hello there.
To make a form element read-only, add readonly to the tag -
Code:<textarea cols="30" rows="10" name="bob" readonly> blah badger blah </textarea>
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
08-03-2002, 08:37 AM #3
As usual, thanks for the tips, QuietDean.
I've just added variations of each at
http://test.gumint.com and
http://tests.gumint.com
Now, is there any way to eliminate that unneeded scrollbar
to the right of the window?
The borders?
Changing the border colors?
-
08-03-2002, 09:04 AM #4
I had a play, the scroll bars are not rendered if not needed in Mozilla, but I found a workaround for IE (tested in 6) which should work. The border is in there, too -
Code:<form NAME="example"> <textarea COLS="56" ROWS="1" READONLY STYLE="background:#ffffe0; color:#8b0000; font-family: verdana; font-size:14px; padding-left: 6px; padding-right: 6px; text-decoration:none; overflow: hidden; border: 5px dashed #000069;"> Secondary SCRIPTs, STYLEs and TABLEs test page. </textarea></form>
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
08-03-2002, 08:05 PM #5
Merci beaucoup, QuietDean. You are a MASTER of your craft.
Now, the test pages show what is possible with this "quick and dirty" trick that uses a FORM for something for which it wasn't designed - much as a screw driver for opening a can of paint -- the types of tricks and techniques that make my own internet life much more interesting and enjoyable.
This is something I definitely will be using on various pages to display just such a disclaimer, entry notice or other user friendly text 'box' that stands out on the page "without the borders" that sometimes detract from it. ( It'll also make other webmasters wonder how it was done.)
-
02-21-2009, 05:18 AM #6
Re: Styles for forms and elements
OMG.. thank you so much.. actually i only registered, to thank you... you really are a master
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum