Is there a way to set the starting and ending highlight colors when
using the built-in helper in_place_editor_field? I’m looking through
the code now and I’m not having any luck finding the right syntax.
Thanks,
Jeff C.man
Is there a way to set the starting and ending highlight colors when
using the built-in helper in_place_editor_field? I’m looking through
the code now and I’m not having any luck finding the right syntax.
Thanks,
Jeff C.man
Jeff C.man wrote:
Is there a way to set the starting and ending highlight colors when
using the built-in helper in_place_editor_field? I’m looking through
the code now and I’m not having any luck finding the right syntax.Thanks,
Jeff C.man
Just did this a few minutes ago:
From AWDWRv2, page 548 (in the PDF, anyway):
div.auto_complete {
width: 350px;
background: #fff ;
}
div.auto_complete ul {
border:1px solid #888 ;
margin:0;
padding:0;
width:100%;
list-style-type:none;
}
div.auto_complete ul li {
margin:0;
padding:3px;
}
div.auto_complete ul li.selected {
background-color: #ffb ;
}
div.auto_complete ul strong.highlight {
color: #800 ;
margin:0;
padding:0;
}
Although in my case I ended up with:
div #host_name_auto_complete.auto_complete ul li.selected {
background-color: #FF9900;
}
Disclaimer - my CSS knowledge is pitiful, so perhaps someone can point
out why I needed the #… part
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs