Andrey (azangru) wrote,
Andrey
azangru

Thoughtbot is a fairly well-known web consultancy that specialized in Ruby on Rails when it was cool, and are now slowly moving towards greener pastures, with Elixir and Phoenix.

Also, the mobile layout of their website is broken. It might look ok at first blush:



But it scrolls about half the screen width to the right, revealing a lot of empty space:



Yeah, probably not how that was intended to work...

The reason, I was surprised to discover, is because there’s a header element that acquires a negative margin of 50% on small screens, like so:





And it isn't wrapped in an element that would hide the protruding right margin with overflow: hidden.
Subscribe

  • (no subject)

    The two guys sitting across the table opposite to each other are two Ukrainian brothers who arrived in the US as teenagers: Twin brothers Artur and…

  • (no subject)

    Course description: In today's business world there are massive goals around diversity and inclusion and you are empowered to lead the way as…

  • Via Reddit

    I didn't know what the operation game was, so I looked it up. The guy, indeed, is clearly awake: I only learnt about charlie horse from King's…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments