The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
Frontend Masters is the best place to get it. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack.