Yii Framework Forum: dropdownlist error css class - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

dropdownlist error css class Rate Topic: -----

#1 User is offline   ilzale 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 113
  • Joined: 08-October 08

Posted 04 November 2008 - 09:30 AM

if in a form there is a activeDropDownList that has error the css class "red" is not applied. i had a look at form.css and tried to change

div.yiiForm input.error,
div.yiiForm textarea.error
{
background-color: #ffc9ca;
border: 1px solid red;
}

to

div.yiiForm input.error,
div.yiiForm textarea.error,
div.yiiForm select.error,
{
background-color: #ffc9ca;
border: 1px solid red;
}


but without success.

0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,890
  • Joined: 04-October 08
  • Location:DC, USA

Posted 04 November 2008 - 10:05 AM

Are you using IE? dropdownlist styling is not quite consistent across browsers.
Also, you CSS has an extra comma at the end of "select".
0

#3 User is offline   ilzale 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 113
  • Joined: 08-October 08

Posted 05 November 2008 - 04:30 AM

you are right,

without the comma problem solved. is it a good idea to add the line in form.css of the framework?
0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,890
  • Joined: 04-October 08
  • Location:DC, USA

Posted 05 November 2008 - 06:49 AM

Yeah, already added.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users