Product attributes layout question

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I have ammended the code in ProductAttributes.ascx.cs line 78. to allow dropdown boxes to be displayed on the same line, is there any way of aligning the controls, I am about to have look at the code to add a table but not sure if this would work.

thanks in advance

steve
13 years ago
Hi Steve,

Try to play with styles. In the HTML markup(HTML page source) you can see how this control was rendered.

For example, if you have markup like this:


<div class="attributes">
     <div>
  <span style="font-weight:bold;"><span>*</span> Processor<br /></span><select name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$6_22" id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_6_22">
    <option value="53">2.2 GHz Intel Pentium Dual-Core E2200</option>
    <option selected="selected" value="54">2.5 GHz Intel Pentium Dual-Core E2200 [+$15.00]</option>

  </select>
    </div>
    ....


You can define a new CSS class

div.attributes div select
{
    you styles here
}

it will be applied to "select" element.

Hope it helps.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.