The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Media query not working – IMG being pushed out of line

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #260160

    I have been designing a personal site for my love of photography, but the last 2 images don’t appear to sit properly and the last 2 are pushed out of line with the rest at the breakpoint for max-width:800px.

    They should grid should align as a 2 column layout from a 4 column layout at this breakpoint. As I resize the browser window, the layout breaks then corrects itself on and off within a couple of pixels. I can’t figure out why, please help

    Screenshots here


    See the Pen Media query breaking by Marc Smedley ( @smedz28) on CodePen.


    You might want to reduce the code in the Pen to just enough to demonstrate the issue.

    We realy don’t want to wade through dozens or hundreds of lines of irrelevant HTML/CSS to figure out what might be the issue.

    Also, use actual images (you can use an online resource like for that.

    Trim the demo down..and you’re likely to get more assistance.

    Help us help you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.