Foren / Cotonti / Core Labs / Archive / CSS-classes for buttons and fields

Sergeich
#1 13. Februar 2009, 17:09
I suggest to all fields and buttons in CMS assign css-classes.
This will give the unity of style. Simplify coder.

All buttons - class .button
Textarea - class .textarea
Select - class .select
Big input - class .biginput
Short input - class .shortinput
Radio input - class .radio
Checkbox input - class .checkbox
medar
#2 13. Februar 2009, 20:11
I agree.

But it is not "quick task". Complex solution will change many of system files and need wide testing.
rangjungyeshe.ru

Dieser Beitrag wurde von medar (am 13. Februar 2009, 20:58, vor 15 Jahre) bearbeitet
Trustmaster
#3 3. April 2009, 22:53
Can't it be achieved by just using CSS selectors?
input[type="button"] { }
textarea { }
select { }
input[type="radio"] { }
input[type="checkbox"] { }
I agree it's useful to detect elements, but it's a bad practice to overblow the markup.
May the Source be with you!