What I now have is this:
<div class="columns">
<h1>Text</h1>
<img src="images/camera.jpg">
My CSS, I basically have 3 columns with an image in them using the img tag
.columns{
float: left;
width: 33.33%;
margin-right: 0px;
}
.columns img{
display: inline-block;
width: 95%;
margin: 20px;
}
.columns h1{
position: absolute;
color: white;
margin-top: 12px;
z-index: 1;
}
How do I center the text in a column?