Try below css - edit your

Clearing margins CSS

Group:before, /* :before to uncollapse the top margin */ .group:after{ display: block; clear: both; /* clear fix */ content: "\a0 "; /* &nbsp; - just a space doesn't uncollapse margins */ visibility: hidden; /* make sure not to show anything */ height: 0; } .group{ zoom: 1; /* solves it all for IE < 8, and doesn't hurt other browsers */ }

Demo: jsFiddle, IE7 render with netrenderer

Note that content: "\a0 "; is equivalent to &nbsp; and is used instead of a non-whitespace character (eg .) so that when you select the block and copy it, you do not get extra visible characters, which otherwise happens in some browsers (for example IE9).

The drawbacks with this solution are:

  • :before and :after are defined, so special care needs to be taken if they are to be used.
  • For every new selector you want to have this fix applied to you have to specify the selector 3 times.
  • Not very short/trivial.
Shipping by airmail from UK: items normally reach US addresses within a few days but can take longer THE STOCK EXCHANGE: The clearing House. London, antique print c1880
Home (Shipping by airmail from UK: items normally reach US addresses within a few days but can take longer)
  • Caption below print: The clearing house
  • Condition: Good; suitable for framing. However, please note: Verso text quite apparent in margin; The image shown may have been taken from a different example of...
  • Size: 14.0 x 14.0cm, 5.5 x 5.5 inches (Small)
  • Type & Age: Year printed c1880. Antique wood engraved print
  • Verso: There are images and/or text printed on the reverse side of the picture which are likely to show through the page to some extent because the paper is quite...
Shipping by airmail from UK: items normally reach US addresses within a few days but can take longer LONDON: Clearing House, Lombard St, antique print, 1847
Home (Shipping by airmail from UK: items normally reach US addresses within a few days but can take longer)
  • Caption below print: The Clearing-House, in Lombard-Street
  • Condition: Good; suitable for framing. Please check the scan for any blemishes prior to making your purchase.
  • Size: 14.5 x 23.5cm, 5.75 x 9.25 inches (Medium)
  • Type & Age: Year printed 1847. Antique wood engraved print
  • Verso: There are images and/or text printed on the reverse side of the picture. In some cases this may be visible on the picture itself (please check the scan prior...
Related Posts