Skip to content

Commit

Permalink
Stop news images appearing too small.
Browse files Browse the repository at this point in the history
We're not exactly sure why this wasn't working, since `#content img`
has `width: 100%` as a rule, which should trigger it to be 100% of its
container.

The new rule is perhaps a bit more explicit; the `max-width` of the
image is set to 100% of its container, and the specific `width` of the
image is set to `inherit`, which should also set it to be the width of
the container.

Huh. Weird.
  • Loading branch information
lazyatom committed Feb 3, 2012
1 parent 4c997ef commit 3169b12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/shared/document_view.scss
Expand Up @@ -75,6 +75,8 @@


img, a img { img, a img {
margin: 0; margin: 0;
width: inherit;
max-width: 100%;
} }
} }


Expand Down

0 comments on commit 3169b12

Please sign in to comment.