This is a migrated thread and some comments may be shown as answers.

[Solved] in-line style

1 Answer 99 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 28 May 2009, 04:31 AM
i'm having some issues styling your ComboBox control with all of the in-line style that exists. aside from using JavaScript to strip out all the style, how would you recommend i go about styling this control differently than how you have pre-determined?

here is the mark-up that you created (no skin):
<div class="rcbSlide" style="overflow: visible; z-index: 6000; visibility: visible; display: block; margin-left: 0pt; position: absolute; top: 197px; left: 14px; height: 225px; width: 160px;"
<div id="ctl00_cph_templateDropDownList_DropDown" class="RadComboBoxDropDown RadComboBoxDropDown_Default" style="display: block; visibility: visible; top: 0px; left: 0px; width: 160px;"
<div class="rcbScroll rcbWidth rcbNoWrap" style="overflow: auto; width: 100%; height: 225px;"
<ul class="rcbList" style="margin: 0pt; padding: 0pt; list-style-type: none; list-style-image: none; list-style-position: outside;"

or perhaps you could point me in the right direction. what i am trying to accomplish is to adjust the div/ul style of the ComboBox items above (specifically the width, i need it to be dynamic based on the text of the items).

thank you,
Drew


1 Answer, 1 is accepted

Sort by
0
Drew
Top achievements
Rank 1
answered on 28 May 2009, 04:46 AM
5 minutes after my initial post i figured it out (from other examples here). adding style with "!important" over-rides the in-line style. it is working exactly how i need it to.
Tags
ComboBox
Asked by
Drew
Top achievements
Rank 1
Answers by
Drew
Top achievements
Rank 1
Share this question
or