The best way I can explain this is with a JSFiddle example: http://jsfiddle.net/8tXku/
I’m floating each .project div to the left and using some simple jQuery to make them expand to show a description when clicked, however if you click the first project it will push the third project to the right, because it’s taking up too much space when expanded.
Is there a way to get the third project div to just gracefully move down the page with the expanded content rather than move over to the right?
This may be a dirty solution but its works perfectly.
Giving the
.project-descriptionaposition:absolute;will allow it to.slideDown()without affecting the surroundingdivs, yet some other tweaks had to be made.I added
position:relative;to.projectso that each.project-descriptionis contained within it.Final CSS
Check this out : http://jsfiddle.net/AliBassam/N4U3R/
UPDATE
When
.project-descriptioncontains a big text (obviously) it will be hidden under the bottom div, just addz-index:99;to.project-descriptionCheck this out: http://jsfiddle.net/AliBassam/pMGDZ/