I have some css
and am applying it to the following html fragment
But when it renders, rather than all the rows appearing as though they are in a tabular layout, i.e. all under each other, with the margins set right, they are all staggered.
It looks as though due to the border on the right hand side of the section number cell extending further than I expect (or can understand), that this is distorting the next row, which further distorts the next and so on.
Can anyone shed any light on this as its driving me nuts, and Im spending my own time trying to refactor this site so it no longer uses tabular layouts.
Cheers
K
Code:
.Section {border-bottom:thin solid;font-size:smaller;font-weight:bold;font-family:verdana;}
.SectionNumber {width:3%;float:left;text-align:right;border-right:2px solid;border-bottom:1px solid;}
.SectionPadding {border-right:2px solid;width:1%;float:left}
.SectionTitle {padding-left:40px;border-bottom:1px solid;}
.sectionInformation {padding-left:10px;border-bottom:thin solid;font-family:verdana;font-weight:normal;}
.sectionRow {border-bottom:thin solid;font-family:verdana;font-weight:normal;}
and am applying it to the following html fragment
Code:
<div class="section">
<div class="sectionNumber">2.</div>
<div class="SectionTitle">Whose products do we offer?</div>
<div class="SectionRow">
<div class="SectionNumber"><input type="checkbox"/></div>
<div class="SectionText">We offer products from a range of insurers.</div>
</div>
<div class="SectionRow">
<div class="SectionNumber"><input type="checkbox"/><br/> </div>
<div class="SectionText">We only offer from a limited number of insurers for Payment Protection and Extended Warranty.
Ask us for a list of insurers we offer insurance from.</div>
</div>
<div class="SectionRow">
<div class="SectionNumber"><input type="checkbox"/></div>
<span class="SectionText">We only offer products from a single insurer for Guaranteed Asset Protection.</span>
</div>
But when it renders, rather than all the rows appearing as though they are in a tabular layout, i.e. all under each other, with the margins set right, they are all staggered.
It looks as though due to the border on the right hand side of the section number cell extending further than I expect (or can understand), that this is distorting the next row, which further distorts the next and so on.
Can anyone shed any light on this as its driving me nuts, and Im spending my own time trying to refactor this site so it no longer uses tabular layouts.
Cheers
K