The behavior you're seeing is most likely the result of jQuery Masonry. You can Google the term to find out more...
Essentially, though, Masonry is a jQuery plugin that allows for dynamic grids, aka the bunched up layout you're after.
However, it looks like the plugin is being initialized after most of the content on your page has already loaded - so at first you see things in a trashy grid, then Masonry runs and things look much nicer.
So, to provide you with an answer: one option you might consider is a hack that fuses both CSS and JavaScript. What you'll be doing is hiding all of the content on your page until everything has loaded, and then display it. Your page will appear to take longer to load, but you won't get the trashy layout anymore.
To do this: create a new <div> tag around your entire page and specify a unique ID. Simplified example:
html Code:
Original
- html Code |
|
|
|
<html>
<head>
<title>Foobar</title>
</head>
<body>
<div id="uniqueID">
ALL PAGE CONTENT HERE
</div>
</body>
</html>
Now, in your CSS, add this style to uniqueID:
css Code:
Original
- css Code |
|
|
|
#uniqueID { visibility: hidden; }
Here's the good bit: just under your
</head> tag, but before the
<body> tag, add the following:
javascript Code:
Original
- javascript Code |
|
|
|
<script type="text/javascript">
window.onload = document.getElementById('uniqueID').style.visibility = "visible";
</script>
Let us know how it goes.
- Null
P.S. As for adding code, just copy and paste it into the text box, highlight it, then click the # button.