Jump to content

Aligning Images and Text Horizontally


kmarsh12

Recommended Posts

Hello,

 

I'm attempting to re-create this Wix page - http://gtnphotography.wix.com/collectivecp#!new-equipment/c10au -in WP using the genesis theme. However, I'm having issues with spacing and alignment. Here's the code I have:

 

<style>

div.container{
position: relative;
}
p {
text-align: center;
margin-bottom: 60px;
}
div.container img{
position: absolute;
top: -30px;
left: -10px;
right: -10px;
}
</style>
<div class="container">
</div>
Any help would be great.
Thanks,
Kelsey
Link to comment
Share on other sites

Right. Those pictures are wrapped in the h2 tag. If I wrap them in a p tag using the same as before, it shifts all of them. I adjusted the space separating the paragraphs to be a h2 tag. It works! Thanks for the help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...