It seems like there is something missing here. I am struggling to align text to the left in a centered div.
Below is an example of my final work:
<div class="grid-row">
<img src="http://www.fununlimitedsports.com/wp-content/images/istockSUP.jpg" />
<div class="profile-info">
<div class="name"><a href="#">STUDENT NAME '14</a></div>
<div class="occupation">Toured nationally with “West Side Story”</div>
<div class="major">MAJOR: MUSIC THEATRE</div>
</div>
</div>
CSS:
.grid-row {
max-width: 980px;
margin: 0 auto;
position: relative;
border: 1px solid green;
text-align:center;
}
How can I center the profile-info
div inside the grid-row
and still have its content aligned to the left?
The image used is just a random image from Google
Edit:
I want the profile-info
div to remain centered in the grid-row
but have the text within it align to the left.