diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-10-05 09:18:58 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-10-05 10:57:16 +0100 |
commit | de8ba7899dd4692cdf062f4b2735157f7fd14cb7 (patch) | |
tree | b3834be35ef47ea999e57d4c36381385910831a0 /web | |
parent | daada5411eb2edcd27111abadbd66c9b368c65b0 (diff) |
Fix questionnaire image sizing in Firefox.
A 100% max-width img within an inline-block within a fixed width wrapper
behaves differently in Firefox to other browsers; other browsers use the
width of the fixed width wrapper, whereas Firefox uses the width set for
the img. Given an identically set-up div, all the browsers use the width
of the div rather than the fixed width wrapper, so Firefox appears to be
behaving more consistently.
The easiest solution is to change the inline-block to display: block, as
the inline-block is alone within a floated fixed width div. Fixes #1243.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/sass/_base.scss | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 9aa079b1f..1a13972e4 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -951,8 +951,8 @@ input.final-submit { // fancybox gallery images have a magnifying glass in the corner .update-img { a { - @include inline-block; - position:relative; + display: block; + position: relative; span { position:absolute; top:0; |