Sorry here is a trickier one.....well for me anyway. The CSS, DIVs, placement etc are all fine. However I cannot figure out how to add an individual CSS to each radio button.
What I would like to do is add the attribute lable to the CSS.
Currently it spits out the following.
<div>
<span style="font-weight:bold;"><span>*</span> Please Choose a Colour<br /></span><table id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40" border="0">
<tr>
<td><input id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_0" type="radio" name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$Colour_40" value="106" checked="checked" /><label for="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_0">Black</label></td>
</tr><tr>
<td><input id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_1" type="radio" name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$Colour_40" value="110" /><label for="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_1">Chocolate Brown</label></td>
</tr><tr>
<td><input id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_2" type="radio" name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$Colour_40" value="111" /><label for="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_2">Black Brisa</label></td>
</tr>
I would like it to spit out
<div>
<div class="PromptTxt>* Please Select A Colour</div>
<div Class="Attrib_Colour" id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40" border="0">
<input id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_0" type="radio" name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$Colour_40" value="106" checked="checked" class="Black" /><label for="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_0">Black</label>
<input id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_1" type="radio" name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$Colour_40" value="110" class="Chocolate_Brown" /><label for="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_1">Chocolate Brown</label>
<input id="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_2" type="radio" name="ctl00$ctl00$cph1$cph1$ctl00$ctrlProductVariantsInGrid$rptVariants$ctl00$ctrlProductAttributes$Colour_40" value="111" class="Black_Brisa" /><label for="ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_2">Black Brisa</label>
..........
I realise I can set css on the ID ie
#ctl00_ctl00_cph1_cph1_ctl00_ctrlProductVariantsInGrid_rptVariants_ctl00_ctrlProductAttributes_Colour_40_1 {}
Just seems long. Of course this could be a much bigger job than I thought. I look for a repeater control to strip out the table but cant find it. So now have a saw head and the wall has a whole in it.
Any help would be great.
In case you read this far! The reason for it is so I can set up colour swatches in place of the radio buttons using css (and script) which I can do. So a potential client can actually click on the colour swatch instead of just choosing a drop down.
if you have read this far....THANKS!
PS hope it made sense