I have a task to create a no-tables, no-images version of a form that must mimic precisely its paper progenitor.
imagine a long box for data entry where each character of that entry is delineated from the next with a half-height border rising from the bottom edge, with the totality of the long box being bordered.
this is what I have so far (where the internal boxes do NOT have the half-height ticks).
As said, the solution (if there is one) needs to be css only. no tables or table-type mark up and also no images. there are reasons for these requirements but they are not relevant to the exercise.
I would rather not create additional mark up inside each box (as the form is already coded and difficult to manage) but if that is the solution then I will grasp it gratefully!
Can anyone see a way though this conundrum?
tia
Justin
imagine a long box for data entry where each character of that entry is delineated from the next with a half-height border rising from the bottom edge, with the totality of the long box being bordered.
this is what I have so far (where the internal boxes do NOT have the half-height ticks).
Code:
<style type='text/css'>
.singleBox {border-top: 1px black solid; border-bottom:1px black solid; width: 25px; float:left; line-height:1;}
.end {border-right: 1px black solid;}
.start {border-left: 1px black solid;}
.wrapper {clear:left; overflow-y:hidden;}
</style>
<div class="wrapper">
<div class="singleBox start"> </div>
<div class="singleBox "> </div>
<div class="singleBox "> </div>
<div class="singleBox end"> </div>
</div>
As said, the solution (if there is one) needs to be css only. no tables or table-type mark up and also no images. there are reasons for these requirements but they are not relevant to the exercise.
I would rather not create additional mark up inside each box (as the form is already coded and difficult to manage) but if that is the solution then I will grasp it gratefully!
Can anyone see a way though this conundrum?
tia
Justin