IE6 Double Margin Bug / Duplicate Characters Bug Fix using jQuery


/ Published in: JavaScript

If you've ever been frustrated at fixing multiple double margin / duplicate character bugs in your page, using this handy jQuery snippit, you can wipe them away instantly!

This code requires the latest version of jQuery.


Copy this code and paste it in your HTML
  1. $('*').each(function() {
  2. if ($(this).css('float') !== 'none') {
  3. $(this).css('display', 'inline');
  4. }
  5. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.