{"id":230,"date":"2009-02-03T11:45:54","date_gmt":"2009-02-03T13:45:54","guid":{"rendered":"https:\/\/www.kadunew.com\/blog\/?p=230"},"modified":"2009-02-03T11:54:00","modified_gmt":"2009-02-03T13:54:00","slug":"bug-do-internet-explorer-6-ie6-margem-dobradas","status":"publish","type":"post","link":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas","title":{"rendered":"Bug do Internet Explorer 6 (IE6) &#8211; Margem dobradas"},"content":{"rendered":"<p>Bugs do Internet Explorer 6 s\u00e3o erros que ocorrem na hora da renderiza\u00e7\u00e3o dos elementos devido esse navegador n\u00e3o seguir os padr\u00f5es web de desenvolvimento. A Microsoft fez uma grande corre\u00e7\u00e3o na quantidade dos bugs do Internet Explorer 7 e promete que o seu mais novo navegador, o Internet Explorer 8, seja 100% padr\u00f5es web.<br \/>\nComo a maioria dos bugs concentram-se no Internet Explorer 6, vou apresentar alguns bugs cl\u00e1ssicos e suas respectivas solu\u00e7\u00f5es desse navegador.<br \/>\n<!--more Continuar lendo...--><\/p>\n<h3>Bug da margem dobrada<\/h3>\n<p>Este bug acontece sempre que flutuamos um elemento \u00e0 esquerda (ou \u00e0 direita) e declarar para o mesmo elemento uma margem para o mesmo lado que o elemento foi flutuado. O IE 6 e anteriores dobrar o valor da margem.<br \/>\n<strong>Veja o exemplo:<\/strong><\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n...\r\n&lt;style type=&quot;text\/css&quot; media=&quot;all&quot;&gt;\r\n#float{\r\n\twidth: 250px;\r\n\theight: 250px; \r\n\tbackground: #FF0000;\r\n\tfloat: left;\r\n\tmargin: 10px 0 0 50px;\r\n\t}\r\n&lt;\/style&gt;\r\n<\/pre>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=&quot;float&quot;&gt;DIV com float&lt;\/div&gt;\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Observe na imagem a renderiza\u00e7\u00e3o errada no navegador IE e a correta no navegador Opera.<br \/>\n<figure id=\"attachment_231\" aria-describedby=\"caption-attachment-231\" style=\"width: 422px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif\" alt=\"bug margem dobrada ie6\" title=\"bug margem dobrada ie6\" width=\"422\" height=\"797\" class=\"size-full wp-image-231\" \/><figcaption id=\"caption-attachment-231\" class=\"wp-caption-text\">bug margem dobrada ie6<\/figcaption><\/figure><\/p>\n<h4>A solu\u00e7\u00e3o do bug<\/h4>\n<p>A solu\u00e7\u00e3o para este bug \u00e9 simples, \u00e9 s\u00f3 declarar display:inline; para o elemento flutuado. Veja o exemplo abaixo:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\u2003\r\n#float{\r\n\tdisplay:inline;\t\r\n\twidth: 250px;\r\n\theight: 250px; \r\n\tbackground: #FF0000;\r\n\tfloat: left;\r\n\tmargin: 5px 0 0 50px;\r\n\t}\r\n<\/pre>\n<p>Elementos que s\u00e3o flutuados assumem a condi\u00e7\u00e3o de elementos <a href=\"https:\/\/www.kadunew.com\/blog\/?p=180\">n\u00edvel de bloco<\/a>, sendo que navegadores padr\u00f5es ignoram essa declara\u00e7\u00e3o.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bugs do Internet Explorer 6 s\u00e3o erros que ocorrem na hora da renderiza\u00e7\u00e3o dos elementos devido esse navegador n\u00e3o seguir os padr\u00f5es web de desenvolvimento. A Microsoft fez uma grande corre\u00e7\u00e3o na quantidade dos bugs do Internet Explorer 7 e promete que o seu mais novo navegador, o Internet Explorer 8, seja 100% padr\u00f5es web. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15,45,16],"class_list":["post-230","post","type-post","status-publish","format-standard","hentry","category-css","tag-bugs-ie6","tag-css","tag-float"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bug do Internet Explorer 6 (IE6) - Margem dobradas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug do Internet Explorer 6 (IE6) - Margem dobradas\" \/>\n<meta property=\"og:description\" content=\"Bugs do Internet Explorer 6 s\u00e3o erros que ocorrem na hora da renderiza\u00e7\u00e3o dos elementos devido esse navegador n\u00e3o seguir os padr\u00f5es web de desenvolvimento. A Microsoft fez uma grande corre\u00e7\u00e3o na quantidade dos bugs do Internet Explorer 7 e promete que o seu mais novo navegador, o Internet Explorer 8, seja 100% padr\u00f5es web. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas\" \/>\n<meta property=\"og:site_name\" content=\"KADUNEW\" \/>\n<meta property=\"article:published_time\" content=\"2009-02-03T13:45:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2009-02-03T13:54:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"422\" \/>\n\t<meta property=\"og:image:height\" content=\"797\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Kadu Oliveira\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kadu Oliveira\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas\",\"url\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas\",\"name\":\"Bug do Internet Explorer 6 (IE6) - Margem dobradas\",\"isPartOf\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif\",\"datePublished\":\"2009-02-03T13:45:54+00:00\",\"dateModified\":\"2009-02-03T13:54:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#primaryimage\",\"url\":\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif\",\"contentUrl\":\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif\",\"width\":\"422\",\"height\":\"797\",\"caption\":\"bug margem dobrada ie6\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.kadunew.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/www.kadunew.com\/blog\/category\/css\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bug do Internet Explorer 6 (IE6) &#8211; Margem dobradas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/#website\",\"url\":\"https:\/\/www.kadunew.com\/blog\/\",\"name\":\"KADUNEW\",\"description\":\"Artigos sobre Front-End e Programa\u00e7\u00e3o web\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.kadunew.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05\",\"name\":\"Kadu Oliveira\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g\",\"caption\":\"Kadu Oliveira\"},\"sameAs\":[\"https:\/\/www.kadunew.com\/blog\"],\"url\":\"https:\/\/www.kadunew.com\/blog\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bug do Internet Explorer 6 (IE6) - Margem dobradas","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas","og_locale":"pt_BR","og_type":"article","og_title":"Bug do Internet Explorer 6 (IE6) - Margem dobradas","og_description":"Bugs do Internet Explorer 6 s\u00e3o erros que ocorrem na hora da renderiza\u00e7\u00e3o dos elementos devido esse navegador n\u00e3o seguir os padr\u00f5es web de desenvolvimento. A Microsoft fez uma grande corre\u00e7\u00e3o na quantidade dos bugs do Internet Explorer 7 e promete que o seu mais novo navegador, o Internet Explorer 8, seja 100% padr\u00f5es web. [&hellip;]","og_url":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas","og_site_name":"KADUNEW","article_published_time":"2009-02-03T13:45:54+00:00","article_modified_time":"2009-02-03T13:54:00+00:00","og_image":[{"width":422,"height":797,"url":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif","type":"image\/gif"}],"author":"Kadu Oliveira","twitter_misc":{"Escrito por":"Kadu Oliveira","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas","url":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas","name":"Bug do Internet Explorer 6 (IE6) - Margem dobradas","isPartOf":{"@id":"https:\/\/www.kadunew.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#primaryimage"},"image":{"@id":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#primaryimage"},"thumbnailUrl":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif","datePublished":"2009-02-03T13:45:54+00:00","dateModified":"2009-02-03T13:54:00+00:00","author":{"@id":"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05"},"breadcrumb":{"@id":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#primaryimage","url":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif","contentUrl":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2009\/02\/bug_margem_dobrada_ie6.gif","width":"422","height":"797","caption":"bug margem dobrada ie6"},{"@type":"BreadcrumbList","@id":"https:\/\/www.kadunew.com\/blog\/css\/bug-do-internet-explorer-6-ie6-margem-dobradas#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kadunew.com\/blog"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/www.kadunew.com\/blog\/category\/css"},{"@type":"ListItem","position":3,"name":"Bug do Internet Explorer 6 (IE6) &#8211; Margem dobradas"}]},{"@type":"WebSite","@id":"https:\/\/www.kadunew.com\/blog\/#website","url":"https:\/\/www.kadunew.com\/blog\/","name":"KADUNEW","description":"Artigos sobre Front-End e Programa\u00e7\u00e3o web","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kadunew.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05","name":"Kadu Oliveira","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g","caption":"Kadu Oliveira"},"sameAs":["https:\/\/www.kadunew.com\/blog"],"url":"https:\/\/www.kadunew.com\/blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts\/230"}],"collection":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":3,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts\/230\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}