Divs aren't lining up.
-
Hello,
My divs aren’t lining up after I added a link to them. Can you please assist. I want the three boxes to top-align.
The page is http://ifdcorg.wordpress.com/benin/
Here is my code:
`<div class=”parentContainer”>
Here is my CSS:
}
.parentContainer {
overflow: auto;
width: 900px;
margin: 0 auto;
}article {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: none;
}article.projects {
float: left;
height: 425px;
width: 33%;
padding: 15px;
}The blog I need help with is: (visible only to logged in users)
-
Your HTML is a little bit messed up. If you look in the source of your page, you’ll see that the closing
/Atags for each article are wrapped in P tags — this probably happened because you hit ENTER before and after the /A tags. So what you might see in your content (Visual mode):<a href="....."> <article> ...... </article> </a>But try fixing it like this:
<a href="..."><article> ...... </article></a>Don’t use any ENTERs between the A tags and ARTICLE tags.
-
-
-
Ok. I think I have a fix for now. I just can’t link the entire box without it messing up.
- The topic ‘Divs aren't lining up.’ is closed to new replies.