Sunday, 15 May 2011

internet explorer - What is this IE CSS bug called? (Double vertical padding) -


(Note, this is not a double margin bug. I'm saying this double-vertical-padding bug then Unless there is no more clever / documented name for this?)

Just when I thought I saw all the false IE CSS bugs, I have done a simple test The case that continues to mislead me looks down the page and works great in FF, Opera, et al though, IE 6 and IE7 seems to be confused. I will let the document given below speak for itself.

Edit: I have put it at the following URL:
Open it in IE and compare it again in FF.

My question is: What is this bug called? (Did I miss it somewhere? Has it been found?) I am familiar with the 3px jog bug and double- (horizontal) -margin bugs and many other float-related bugs ... but the vertical padding is being repeated ? (And to the wrong place, to boot.)

  & lt ;! DOCTYPE html public "- // W3C // DTT XHTML 1.0 Transitional // N" http: // www. W3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" target="_blank"> html xmlns = "http://www.w3.org/1999/xhtml"> gt; Top & gt; Lt; meta http-equiv = "content-type" content = "text / html; Charset = ISO-8859-1 "/>  Title> IE Bork! <LT; / title> Style Type =" Text / CSS "> Html, Body {Margin: 0; padding: 0;} # container {border: 1px solid red; background color: # CC99CC; width: 800px; margin: 0 auto; paddle-top: 100px;} # sidebar {float: left; display: inline; Width: 200px; border: 1px solid blue; background color: # 00CCFF; #content {float: right; display: inline; width: 510px; border: 1px solid green; background color: # 66CC99;} clear { Explicit: Both; / * height: 0 pixels; Lt; <lt; setting: Setting height is the only thing that makes this work as expected?!? * / Background color: #CCCCCC; / * BG color here only for debugging * / Style >> gt; body & gt; & lt; body & gt; & lt; div id = "container" & gt; div id = "sidebar" & gt; i am sidebar & lt; / Div> <div id = "content" & gt; I & lt; / div & gt; & lt; div class = "clear" & gt; & lt ;! - clear! - & gt; & Lt; / div & gt; & lt; / div & gt; & Lt; P & gt; There should be 100 pixels space above the two floats, but the & lt; Em> No & lt; / Em> The place below ... & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt; </code> </pre> <p> PS, I finally understood how to please IE on this. The solution to show the bug (clearly set a height on my "clear" div) has been commented; I can live only for the last few hours of my life that I had to stumble in the real issue / solution! </p> <p> Thank you! </p> </div> <p> <div class = "post-text" itemprop = "text"> <p> Given the solution you found, it seems IE quirk. </p> </p> </p> </p> </p> </p> </p> </p> </p> </p> </p> </html> <br /> 
<div style='clear: both;'></div>
</div>
<div class='post-footer'>
<div class='post-footer-line post-footer-line-1'>
<span class='post-author vcard'>
<span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
<meta content='https://www.blogger.com/profile/05006124498600715544' itemprop='url'/>
<a href='https://www.blogger.com/profile/05006124498600715544' rel='author' title='author profile'>
<span itemprop='name'>Unknown</span>
</a>
</span>
</span>
<span class='post-timestamp'>
at
<meta content='http://dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html' itemprop='url'/>
<a class='timestamp-link' href='http://dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html?m=1' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2011-05-15T03:22:00-07:00'>03:22</abbr></a>
</span>
<span class='post-comment-link'>
</span>
</div>
<div class='post-footer-line post-footer-line-2'>
<div class='mobile-link-button goog-inline-block' id='mobile-share-button'>
<a href='javascript:void(0);'>Share</a>
</div>
</div>
</div>
</div>
<div class='comments' id='comments'>
<a name='comments'></a>
<h4>No comments:</h4>
<div id='Blog1_comments-block-wrapper'>
<dl class='avatar-comment-indent' id='comments-block'>
</dl>
</div>
<p class='comment-footer'>
<div class='comment-form'>
<a name='comment-form'></a>
<h4 id='comment-post-message'>
<a href='javascript:void(0)' id='Blog1_comment-editor-toggle-link'>Post a Comment</a></h4>
<p>
</p>
<a href='https://www.blogger.com/comment/frame/3808073632939273577?po=6021861810587554876&hl=en-GB&saa=85391&origin=http://dhara-shukla-gtu.blogspot.com&m=1' id='comment-editor-src'></a>
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410px' id='comment-editor' name='comment-editor' src='' style='display: none' width='100%'></iframe>
<script src='https://www.blogger.com/static/v1/jsbin/1167892209-comment_from_post_iframe.js' type='text/javascript'></script>
<script type='text/javascript'>
      BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html');
    </script>
</div>
</p>
</div>
</div>
</div>
</div>
</div>
<div class='blog-pager' id='blog-pager'>
<div class='mobile-link-button' id='blog-pager-newer-link'>
<a class='blog-pager-newer-link' href='http://dhara-shukla-gtu.blogspot.com/2011/05/winforms-c-printing-inconsistent.html?m=1' id='Blog1_blog-pager-newer-link' title='Newer Post'>‹</a>
</div>
<div class='mobile-link-button' id='blog-pager-older-link'>
<a class='blog-pager-older-link' href='http://dhara-shukla-gtu.blogspot.com/2011/05/reflection-given-c-type-get-its-base.html?m=1' id='Blog1_blog-pager-older-link' title='Older Post'>›</a>
</div>
<div class='mobile-link-button' id='blog-pager-home-link'>
<a class='home-link' href='http://dhara-shukla-gtu.blogspot.com/?m=1'>Home</a>
</div>
<div class='mobile-desktop-link'>
<a class='home-link' href='http://dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html?m=0'>View web version</a>
</div>
</div>
<div class='clear'></div>
</div></div>
</div>
</div>
<div class='column-left-outer'>
<div class='column-left-inner'>
<aside>
</aside>
</div>
</div>
<div class='column-right-outer'>
<div class='column-right-inner'>
<aside>
</aside>
</div>
</div>
</div>
<div style='clear: both'></div>
<!-- columns -->
</div>
<!-- main -->
</div>
</div>
<div class='main-cap-bottom cap-bottom'>
<div class='cap-left'></div>
<div class='cap-right'></div>
</div>
</div>
<footer>
<div class='footer-outer'>
<div class='footer-cap-top cap-top'>
<div class='cap-left'></div>
<div class='cap-right'></div>
</div>
<div class='fauxborder-left footer-fauxborder-left'>
<div class='fauxborder-right footer-fauxborder-right'></div>
<div class='region-inner footer-inner'>
<div class='foot no-items section' id='footer-1'></div>
<!-- outside of the include in order to lock Attribution widget -->
<div class='foot section' id='footer-3' name='Footer'><div class='widget Profile' data-version='1' id='Profile1'>
<h2>About Me</h2>
<div class='widget-content'>
<dl class='profile-datablock'>
<dt class='profile-data'>
<a class='profile-name-link g-profile' href='https://www.blogger.com/profile/05006124498600715544' rel='author' style='background-image: url(//www.blogger.com/img/logo-16.png);'>
Unknown
</a>
</dt>
</dl>
<a class='profile-link' href='https://www.blogger.com/profile/05006124498600715544' rel='author'>View my complete profile</a>
<div class='clear'></div>
</div>
</div><div class='widget Attribution' data-version='1' id='Attribution1'>
<div class='widget-content' style='text-align: center;'>
Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>.
</div>
<div class='clear'></div>
</div></div>
</div>
</div>
<div class='footer-cap-bottom cap-bottom'>
<div class='cap-left'></div>
<div class='cap-right'></div>
</div>
</div>
</footer>
<!-- content -->
</div>
</div>
<div class='content-cap-bottom cap-bottom'>
<div class='cap-left'></div>
<div class='cap-right'></div>
</div>
</div>
</div>
<script type='text/javascript'>
    window.setTimeout(function() {
        document.body.className = document.body.className.replace('loading', '');
      }, 10);
  </script>

<script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/2112189061-widgets.js"></script>
<script type='text/javascript'>
var BLOG_BASE_IMAGE_URL = 'https://resources.blogblog.com/img';var BLOG_LANG_DIR = 'ltr';window['__wavt'] = 'AOuZoY7Gd0rpTl2Ym7Ypv6GkkrovUMHqvA:1757314013177';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d3808073632939273577','//dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html?m\x3d1','3808073632939273577');
_WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '3808073632939273577', 'title': 'DHara', 'url': 'http://dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html?m\x3d1', 'canonicalUrl': 'http://dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html', 'homepageUrl': 'http://dhara-shukla-gtu.blogspot.com/?m\x3d1', 'searchUrl': 'http://dhara-shukla-gtu.blogspot.com/search', 'canonicalHomepageUrl': 'http://dhara-shukla-gtu.blogspot.com/', 'blogspotFaviconUrl': 'http://dhara-shukla-gtu.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en-GB', 'localeUnderscoreDelimited': 'en_gb', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': true, 'isMobileRequest': true, 'mobileClass': ' mobile', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22DHara - Atom\x22 href\x3d\x22http://dhara-shukla-gtu.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22DHara - RSS\x22 href\x3d\x22http://dhara-shukla-gtu.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22DHara - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/3808073632939273577/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22DHara - Atom\x22 href\x3d\x22http://dhara-shukla-gtu.blogspot.com/feeds/6021861810587554876/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': false, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/8768b2abe984dc7c', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en_GB\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'item', 'postId': '6021861810587554876', 'pageName': 'internet explorer - What is this IE CSS bug called? (Double vertical\npadding) -', 'pageTitle': 'DHara: internet explorer - What is this IE CSS bug called? (Double vertical\npadding) -'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard', 'ok': 'Ok', 'postLink': 'Post link'}}, {'name': 'template', 'data': {'name': 'Simple', 'localizedName': 'Simple', 'isResponsive': false, 'isAlternateRendering': true, 'isCustom': false, 'variant': 'simplysimple', 'variantId': 'simplysimple'}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': true, 'title': 'internet explorer - What is this IE CSS bug called? (Double vertical\npadding) -', 'description': '     (Note, this is not a double margin bug. I\x27m saying this double-vertical-padding bug then Unless there is no more clever / documented na...', 'url': 'http://dhara-shukla-gtu.blogspot.com/2011/05/internet-explorer-what-is-this-ie-css.html?m\x3d1', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 6021861810587554876}}]);
_WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'mobile': true}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_ProfileView', new _WidgetInfo('Profile1', 'footer-3', document.getElementById('Profile1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull'));
_WidgetManager._RegisterWidget('_NavbarView', new _WidgetInfo('Navbar1', 'navbar', document.getElementById('Navbar1'), {}, 'displayModeFull'));
</script>
</body>
</html>