I have 3 divs that contain essentially the same info. Each div is made up of an image/header/paragraph. Each tag (IMG/Header/Paragraph) in the div should be listed underneath of each other so that we see the image, title of the picture beneath the image, and some text about the image beneath the title. Each div just has a different class name, column1/column2/column3
Each div should be listed next to each other in a line going from left to right, but I can't seem to get this right. Can someone help?
#portraitGrid {
max-width: 30%;
display: inline-block;
background-color: #ff99cc;
}
.column1 {
float: left;
background-color: #ff99cc;
}
<div id="portraitGrid" class="column1">
<img id="portfolioPortrait" class="portraitImage" src="Images/Humming 2.jpeg" />
<br />
<br />
<h3 id="portfolioPortrait" class="title">Humming Bird</h3>
<p>
The Humming Bird portrait was inspired by a card made for my boyfriend. The theme of this was to have make something romantic in a cute, simple, yet bold. Framed in a black shadow box, the color and designs stand out even stronger.
</p>
</div>
` is an empty tag. it does not need to be closed or a slash at the end. Also if you put it 2 times after each other, you do soemthing wrong. in that case you should simply add a `margin-bottom: 2em;` which will have the exact same effect by default without to hard-code it HTML wise. Same for the `