css grid full width

We have a fullwidth grid on a homepage (design jpg at http://design.dasmedia.be/tsubo/v3/02_tsubo_home) that :
- should align with the logo (check http://design.dasmedia.be/tsubo/tsubo-scr.png)
- should have fixed size images
- should be centered on the page

So depending on the width of the window, the user will see more/less images on a row


Html can be checked at: http://design.dasmedia.be/tsubo/html/tsubo_home.html
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Without understanding why the page was marked up as it is here is part of your problem
Line 633 of skin.css
.thumbs_row {
  left: -465px;
  position: absolute;
  width: 215%;
  z-index: 0;

Open in new window

You are setting the width of the page to 215% - which is going to cause the problem.

Before changing it the question is why was it styled like that?
ads711Author Commented:
Thank you for your answer!

I realize that's the main issue that needs to be resolved. But I can't figure out another way to achieve the desired result where the third picture of the .thumbs_row div aligns with the logo...

I styled it like this because the pictures didn't want to stay on the same line because they float.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I have done this in the past using masonry http://masonry.desandro.com/
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

ads711Author Commented:
3 lines of javascript code solved the problem without any extra plugins :)
Thanks for the answers, though!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
What was the final solution of js code you used?
ads711Author Commented:
window.onresize = function(event) {

function resizePhotoWall(){

var offset = $('.content').offset();
var new_position = 465 - offset.left;
$('.thumbs_row').css('left', -new_position);


Open in new window

ads711Author Commented:
Found the solution myself *yaay*
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.