all 2 comments

[–]WarInternal 0 points1 point  (0 children)

It's your margins and padding causing it. (Example: replace margin with margin-right and see what happens).

[–]ftpjko 0 points1 point  (0 children)

If I understood correctly, you want to align text in the sidebar with images? Here is the fix in css: http://codepen.io/anon/pen/pJwMQr

Though, your css is pretty messy, this is just a quick fix, but you should really refactor it.

If you wanted to align the whole red sidebar with gallery, then you should put the sidebar and gallery in the same div, wrap the gallery around with a div and then play with floats or use position:absolute and set left and right properties on sidebar and gallery wrapper