I have been experimenting with the <dl>, <dt> and <dd> tags to create a tabular display.
My main problem is making the borders appear consistent with differing amounts of displayed information.
They do not form the “grid” display I would like to create.
Is there a method to modify the CSS to make this appear more like a table?
I’ve tried using a min-height setting, but it doesn’t change much.
[code]
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″ />
<meta name=”viewport” content=”width=device-width”>
<meta name=”viewport” content=”initial-scale=1.0, user-scalable=yes”/>
<title> FAQ DL/DT/DD page </title>
<style type=”text/css”>
@media screen, print { body { line-height: 1.2 } }
.para { display:inline-block; }
dl p { clear:left; }
dt { float:left; width:200px;
margin:0px 0px 0px 0px;
padding: 0px 3px 0px 3px;
border-top:1px solid blue;
border-right:1px solid blue;
border-bottom:1px solid blue;
border-left:1px solid blue;
}
dd { float:left; width:200px;
margin:0px 0px 0px 0px;
padding: 0px 3px 0px 3px;
border-top:1px solid blue;
border-right:1px solid blue;
border-bottom:1px solid blue;
border-left:1px solid blue;
}
</style>
</head>
<body>
<h3> DL / DT / DD Tables </h3>
<dl>
<dt>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </dt>
<dd class=”para”>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </dd>
<dd>
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </dd>
<p>
<dt>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </dt>
<dd class=”para”>
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </dd>
<dd>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </dd> <p>
</dl>
</body>
</html>