I'm trying, without success, to develop particular simple layout with CSS. I'd like to achieve something like this:
BookImage BookImage BookImage
BookTitle BookTitle BookTitle
Up to know I have this:
<div class="center">
<h2>Science</h2>
<div class="ThreeColumns">
<div> <img src="ex"><p>Title</p> </div>
<div> <img src="ex"><p>Title</p> </div>
<div> <img src="ex"><p>Title</p> </div>
</div>
.threeColumns{
-moz-column-count: 3; /* Firefox */
-webkit-column-count: 3; /* Safari and Chrome */
column-count: 3;
}
The problem is that I'm not getting what I want. It is as if each tag (<img>
or <p></p>
) is seen as a "column". I'd like a way to group <img>
and <p>
, put them together and obtain my layout. I thought <div>
could do it but I was wrong.