View Full Version : css: form questions
mattover-matter
03-24-2003, 07:59 AM
Hello, Have a few questions.
1){
Can I define name attribute in css(name="clockspot")
}
2){
Edited(resolved)
}
3{
Can I define readonly attribute in css?(<FORM>
<INPUT TYPE="text" readonly
</FORM>)
}
4{
I think I can figure this out, but How can I define form size in CSS? (size="40"), size: 40;?
}
Thank you in advance :o
Edited(Disabled Smilies)
brothercake
03-24-2003, 09:55 AM
1/2 - you found out about attribute selectors; okay :)
3 - almost:
<input readonly="readonly"
is correct XHTML. It's fairly widely supported, but bottom-line I wouldn't rely on it, particularly not for validation or error-avoidance - if an element value should not be changed, you must check for that in your validation scripting
4 - you can't; size is an HTML attribute. But you can define width.
mattover-matter
03-24-2003, 09:36 PM
what about #1? Name in CSS, that possible, or flausable? :rolleyes:
No. class and id, but no name.
brothercake
03-24-2003, 11:45 PM
If you had an element with the name attribute "something", then you can identify it with an attribute selector
input[name="something"] {
very cool :) It works in moz, O7 and safari/konqueror, but not IE;
cg9com
03-25-2003, 02:06 PM
Originally posted by brothercake
very cool :) It works in moz, O7 and safari/konqueror, but not IE;
<rant>
and ONLY because it is cool is why IE doesnt support it. :mad: :rolleyes:
im getting frustrated with the restrictions, all i want is some CSS!
</rant>
Roy Sinclair
03-26-2003, 04:10 PM
Originally posted by cg9com
<rant>
and ONLY because it is cool is why IE doesnt support it. :mad: :rolleyes:
im getting frustrated with the restrictions, all i want is some CSS!
</rant>
You get some CSS, the problem right now is that without competition for a long time (from the IE 4.0 release through the IE 6.0 release) MS lead all the other browsers in their CSS support so they sat on their laurels and didn't make any significant advances in that support instead spending their efforts on proprietary enhancements and other standards (XML). With the release of some other new browsers with better CSS support MS may finally be prodded into making some real improvements in their support of CSS. That of course assumes MS is working on their browser engine at all instead of trying to be a butterfly.
brothercake
03-26-2003, 04:16 PM
Originally posted by Roy Sinclair
instead of trying to be a butterfly.
Huh? You mean as in "float like a ... but sting like a bee" ?
cg9com
03-26-2003, 06:53 PM
I think he means the MSN mascot.
Roy Sinclair
03-26-2003, 07:58 PM
I guess I should have been a tad more specific, I think MS's developers have been spending too much time working on their MSN browser trying to out AOL the AOL browser instead of working on core problems like fixing their half complete CSS.
brothercake
03-26-2003, 08:21 PM
Oh right; yeah I think your original assessment was bang on the mark - it's all a case of prorities.
Obviously we, who care about and appreciate the value of web standards, don't agree with their priorities. Unfortunately most of our employers do :rolleyes:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.