- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
This is the code:
<.div>
<.div id="a" style="height:100px;">1
<.div id="a" style="height:150px;">2
<.div id="a" style="height:100px;">3
<.div id="a" style="height:150px;">4
<.div id="a" style="height:100px;">5
<.div id="a" style="height:150px;">6
<.div id="a" style="height:100px;">7
<.div id="a" style="height:150px;">8
What i want is for the div’s to occupy the spaces below each divs. like in this site: http://www.vingle.net/
can css handle it or maybe add some javascript?
Please help.
Remove the periods before the divs. That markup is invalid as is. Also, it would benefit you if you just created a stylesheet and put your CSS in that. Don’t use inline styling. It’s a hassle.
Take a look at masonry.js
i did it on purpose because the code wont preview here. Just take the periods and it’ll generate.
Thanks Chirs! this is what im looking for :)
jQuery Isotope is another good masonry type script to take a look at
Thanks Chris and Pooders. Learned something new again :).