I created the following layout:
<div class="title" id="m1">
<div class="chkbx">something</div>
<div class="name">
<a href="#" onclick="doSomething('1');">Dummy #1</a>
</div>
</div>
// .. the div above repeats several times
I'm using the folowing CSS:
div.title { border: 1px black solid; }
div.chkbx {
clear:both;
float:left;
padding:2px;
text-align:right;
width:5%;
}
div.name {
float:left;
width: 50%;
}
and would expect a border around all of class=title
, but see only some strange lines at the top. Please let me know what I do wrong.
Many many thanks!