Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by James Snyder on Aug 25, 2009 10:52
open dhtmlx forum
Combo - text alignment

I am adding values to a dCombo in a grid and the text when I display the combo drop down are all left aligned, however when I select an item the text aligns to the right. What do I need to do so that the text left aligns?

Thanks,
James
Answer posted by Alex (support) on Aug 26, 2009 01:47

Hello,

dhtmlxcombo doesn't provide built- in functionality to change align. 

But you can try to change the combo style directly in the dhtmlxcombo.css:

/*class for combo input*/

.dhx_combo_input{
 color:#333333;
 font-family: Arial;
 font-size: 9pt;
 border:0px;
 padding:2px 2px 2px 2px;
 position:absolute;
 top:0px;
}

/*class for combo list*/

.dhx_combo_list{
  position:absolute;
  z-index:230;
  overflow-y:auto;
  overflow-x:hidden;
  border:1px solid black;
  height:100px;
  font-family: Arial;
  font-size: 9pt;
  background-color: white;
}

Answer posted by James Snyder on Aug 26, 2009 06:29

Thanks,

However your answer didn't work.  I added "text-align:left;" to both sections in that css and the text is still align to the right.  When I select the drop down arrow the text aligns left (always has) but when an item from the list is selected the text still aligns to the right.   Any ideas?

James