I want to create a "table" using CSS to display book covers and short
reviews where the This is some test, yada, yada, yada +----------+
| |
| |
| img |
| |
| |
+----------+
--------------------- hr here ---------------------
This is a review of the next book. It +----------+
a bit longer but neither one is as | |
tall as the book covers. | |
| img |
| |
| |
+----------+
--------------------- hr here ---------------------
but the HR elements run through the covers, not under them. I've
tried putting a bottom border on the div that holds both and that
didn't help. I've got:
/* Add top and bottom border to separate books */
div.book {
border-bottom-width: medium;
border-left-width: 0;
border-right-width: 0;
border-top-width: 0;
border-style: groove;
padding-top: 10px;
padding-left: 1cm;
padding-right: 1cm;
}
/* These are stacked, I want them side-by-side. */
..bookcover {
float: left;
clear: left;
position: relative;
}
..bookblurb {
vertical-align: top;
position: relative;
}
and
<div class='book'>
<img class='bookcover' src='images/b.jpg' />
<p class='bookblurb'>Talk talk talk</p>
</div>
<div class='book'>
<img class='bookcover' src='images/a.jpg' />
<p class='bookblurb'>Talk talk talk some more</p>
</div>
How can I get images to the side of text and lines between each book
div?
TIA.