Форуми / Cotonti / Core Labs / Archive / CSS-classes for buttons and fields

Sergeich Онлайн
#1 13.02.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.02.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

Відредаговано: medar (13.02.2009 20:58, 15 років тому)
Trustmaster
#3 03.04.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!