I would like to display day, month and year in form using dl, dt and dd.
I would like this to present like this :
BIRTHDAY
day month year
in1 in2 in3
Where in* is the input of given type, it shouldnt matter.
How should the css should look like to accomplish this?
My current code is:
<dl>
<dt>day</dt>
<dd>myInput<dd>
<dt>month</dt>
<dd>myInput2</dd>
<dt>year</dt>
<dd>myInput3</dd>
</dl>
You’re in the need of a table, not definition lists (
<dl>tag pairs). People constantly neglect using tables, even though they are completely appropriate (and originally made) for the job.The HTML:
The CSS:
Live Demo: http://jsfiddle.net/Blender/5rhLd/