html - Using CSS Selectors Incorrectly -
i have code looks below. using css try , assign span tag id="tl_quantity$0"
padding-right of 20px
. i'm using css selectors incorrectly. know how change end of css assign span tag padding not directly calling id?
here html:
<td id="tdtl_payable_time$0#2" class="pslevel1gridoddrow" width="127" align="left" style=""> <td id="tdtl_payable_time$0#3" class="pslevel1gridoddrow" width="152" align="left" style=""> <td id="tdtl_payable_time$0#5" class="pslevel1gridoddrow" width="105" align="left" style=""> <td id="tdtl_payable_time$0#6" class="pslevel1gridoddrow" align="right" style=""> <div id="win10divtl_quantity$0" style="width:78px;"> <span id="tl_quantity$0" class="pseditbox_disponly">8.00</span></div></td>
and here css:
#lbcontent #comp_zpnccomp .pslevel1gridoddrow, #lbcontent #comp_zpnccomp .pslevel2gridoddrow, #lbcontent #comp_zpnccomp .pslevel3gridoddrow, #lbcontent #comp_zpnccomp .pssrchresultsoddrow div:nth-child(1) span:nth-child(1) { padding-right:20px; }
i know of correct, messing try calling children:
#lbcontent #comp_zpnccomp .pslevel1gridoddrow, #lbcontent #comp_zpnccomp .pslevel2gridoddrow, #lbcontent #comp_zpnccomp .pslevel3gridoddrow, #lbcontent #comp_zpnccomp .pssrchresultsoddrow
i think real problem id names elements. may wrong, don't think use of $
allowed in css specify element's id name.
see here: what valid values id attribute in html?
Comments
Post a Comment