JSFiddle - React, Tailwind, and code Playground
by Bacher
HTML
<div id="container">
<table class="bookshelf">
<tbody>
<tr class="upper">
<td class="left"></td>
<td class="center"></td>
<td class="right"></td>
</tr>
<tr class="center">
<td class="left"></td>
<td class="center">
<ul class="row1 clearfix">
<li class="book">
<div>
<span>Пушкин</span>
</div>
</li>
<li class="book"></li>
</ul>
<div class="row-splitter"></div>
<ul class="row2 clearfix">
<li class="book"></li>
<li class="book"></li>
</ul>
<div class="row-splitter"></div>
<ul class="row3 clearfix">
<li class="book"></li>
<li class="book"></li>
</ul>
</td>
<td class="right"></td>
</tr>
<tr class="lower">
<td class="left"></td>
<td class="center"></td>
<td class="right"></td>
</tr>
</tbody>
</table>
</div
CSS
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both;
}
td {
}
tr.upper td,
tr.lower td,
tr td.left,
tr td.right {
background-color: brown;
}
tr.upper td,
tr.lower td {
height: 10px;
}
tr td.left,
tr td.right {
width: 10px;
}
tr.center td.center {
width: 300px;
/*height: 200px;*/
}
.row-splitter {
height: 10px;
background-color: brown;
}
ul {
list-style: none;
padding: 0 1px;
}
li.book {
display: block;
float: left;
width: 15px;
height: 45px;
border: 1px solid black;
margin: 3px 1px 0 1px;
}
li.book:hover {
background-color: yellow;
}
li.book div {
font-size: 10px;
-webkit-transform: rotate(-90deg);
-webkit-transform-origin: 50% 50%;
}