{"id":619,"date":"2009-05-19T13:03:34","date_gmt":"2009-05-19T03:03:34","guid":{"rendered":"https:\/\/eisabainyo.net\/weblog\/?p=619"},"modified":"2009-05-19T13:09:15","modified_gmt":"2009-05-19T03:09:15","slug":"fieldset-and-legend-bug-in-ie8","status":"publish","type":"post","link":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/","title":{"rendered":"Fieldset and Legend bug in IE8"},"content":{"rendered":"<p><strong>Problem in IE8:<\/strong><\/p>\n<p>The upper half of the &lt;fieldset&gt; border goes missing.   This problem has been discussed <a href=\"http:\/\/teddyzetterlund.com\/2009\/04\/16\/internet-explorer-8-fieldset-and-legend-bugs\/\">here<\/a> and shown <a href=\"http:\/\/flowersapp.youtubevideobox.com\/ie8_fieldset_bug.html\">here<\/a>. <\/p>\n<p><strong>HTML:<\/strong><\/p>\n<pre>\r\n&lt;form action=&quot;login.php&quot; method=&quot;post&quot; id=&quot;login&quot;&gt; \r\n  &lt;fieldset&gt;\t\t\r\n    &lt;legend&gt;Login&lt;\/legend&gt;\r\n    &lt;label for=&quot;username&quot; class=&quot;label&quot;&gt;Username&lt;\/label&gt;\r\n    &lt;input type=&quot;text&quot; name=&quot;username&quot; id=&quot;username&quot;\/&gt;\r\n    &lt;label for=&quot;password&quot; class=&quot;label&quot;&gt;Password&lt;\/label&gt;\r\n    &lt;input type=&quot;password&quot; name=&quot;password&quot; id=&quot;password&quot; \/&gt;\r\n    &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Login&quot; \/&gt;\r\n  &lt;\/fieldset&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p><strong>CSS:<\/strong><\/p>\n<pre>\r\nfieldset {\r\n\tborder: 1px solid #333;\r\n}\r\n\r\nlegend {\r\n\tdisplay: none;\r\n}\r\n<\/pre>\n<p><strong>The workaround:<\/strong><\/p>\n<p>It looks like the problem occurs only when you set the &lt;legend&gt; to display: none in CSS.   To solve this, we will need to add a span element inside the legend and set it to display: none and remove display: none from legend.   <\/p>\n<p><strong>Updated HTML:<\/strong><\/p>\n<pre>\r\n    &lt;legend&gt;&lt;span&gt;Login&lt;span&gt;&lt;\/legend&gt;\r\n<\/pre>\n<p><strong>Updated CSS:<\/strong><\/p>\n<pre>legend {\r\n}\r\n\r\nlegend span {\r\n\tdisplay: none;\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Problem in IE8: The upper half of the &lt;fieldset&gt; border goes missing. This problem has<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8,16,3],"tags":[],"class_list":["post-619","post","type-post","status-publish","format-standard","hentry","category-css","category-snippets","category-troubleshooting","category-xhtml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fieldset and Legend bug in IE8 | Tech Leadership Advice &amp; Resources<\/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:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fieldset and Legend bug in IE8 | Tech Leadership Advice &amp; Resources\" \/>\n<meta property=\"og:description\" content=\"Problem in IE8: The upper half of the &lt;fieldset&gt; border goes missing. This problem has\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Leadership Advice &amp; Resources\" \/>\n<meta property=\"article:published_time\" content=\"2009-05-19T03:03:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2009-05-19T03:09:15+00:00\" \/>\n<meta name=\"author\" content=\"Isabel Nyo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Isabel Nyo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\"},\"author\":{\"name\":\"Isabel Nyo\",\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab\"},\"headline\":\"Fieldset and Legend bug in IE8\",\"datePublished\":\"2009-05-19T03:03:34+00:00\",\"dateModified\":\"2009-05-19T03:09:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\"},\"wordCount\":82,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab\"},\"articleSection\":[\"CSS\",\"Snippets\",\"Troubleshooting\",\"xHTML\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\",\"url\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\",\"name\":\"Fieldset and Legend bug in IE8 | Tech Leadership Advice &amp; Resources\",\"isPartOf\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#website\"},\"datePublished\":\"2009-05-19T03:03:34+00:00\",\"dateModified\":\"2009-05-19T03:09:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eisabainyo.net\/weblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fieldset and Legend bug in IE8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#website\",\"url\":\"https:\/\/eisabainyo.net\/weblog\/\",\"name\":\"Career Resources for Professionals in Tech\",\"description\":\"Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering &amp; Technology Directors\",\"publisher\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eisabainyo.net\/weblog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab\",\"name\":\"Isabel Nyo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g\",\"caption\":\"Isabel Nyo\"},\"logo\":{\"@id\":\"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/image\/\"},\"description\":\"My interests: Web Development, Web Design, Web Applications, Web 2.0, AJAX, Search Engine Optimisation, Latest Technologies and more..\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fieldset and Legend bug in IE8 | Tech Leadership Advice &amp; Resources","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:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/","og_locale":"en_US","og_type":"article","og_title":"Fieldset and Legend bug in IE8 | Tech Leadership Advice &amp; Resources","og_description":"Problem in IE8: The upper half of the &lt;fieldset&gt; border goes missing. This problem has","og_url":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/","og_site_name":"Tech Leadership Advice &amp; Resources","article_published_time":"2009-05-19T03:03:34+00:00","article_modified_time":"2009-05-19T03:09:15+00:00","author":"Isabel Nyo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Isabel Nyo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#article","isPartOf":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/"},"author":{"name":"Isabel Nyo","@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab"},"headline":"Fieldset and Legend bug in IE8","datePublished":"2009-05-19T03:03:34+00:00","dateModified":"2009-05-19T03:09:15+00:00","mainEntityOfPage":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/"},"wordCount":82,"commentCount":8,"publisher":{"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab"},"articleSection":["CSS","Snippets","Troubleshooting","xHTML"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/","url":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/","name":"Fieldset and Legend bug in IE8 | Tech Leadership Advice &amp; Resources","isPartOf":{"@id":"https:\/\/eisabainyo.net\/weblog\/#website"},"datePublished":"2009-05-19T03:03:34+00:00","dateModified":"2009-05-19T03:09:15+00:00","breadcrumb":{"@id":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/eisabainyo.net\/weblog\/2009\/05\/19\/fieldset-and-legend-bug-in-ie8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eisabainyo.net\/weblog\/"},{"@type":"ListItem","position":2,"name":"Fieldset and Legend bug in IE8"}]},{"@type":"WebSite","@id":"https:\/\/eisabainyo.net\/weblog\/#website","url":"https:\/\/eisabainyo.net\/weblog\/","name":"Career Resources for Professionals in Tech","description":"Books, worksheets, templates, frameworks and other useful resources for Chief Technology Officers (CTOs), VPs of Engineering &amp; Technology Directors","publisher":{"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eisabainyo.net\/weblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/33457dd19f1ad9bbd4b0cb50c54dfcab","name":"Isabel Nyo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3d4b1a4e0f425adb39b242b0d62c5fac07c82f8314a24631f1d16f47bdf006d8?s=96&d=mm&r=g","caption":"Isabel Nyo"},"logo":{"@id":"https:\/\/eisabainyo.net\/weblog\/#\/schema\/person\/image\/"},"description":"My interests: Web Development, Web Design, Web Applications, Web 2.0, AJAX, Search Engine Optimisation, Latest Technologies and more.."}]}},"_links":{"self":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts\/619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/comments?post=619"}],"version-history":[{"count":6,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts\/619\/revisions"}],"predecessor-version":[{"id":625,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/posts\/619\/revisions\/625"}],"wp:attachment":[{"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/media?parent=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/categories?post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eisabainyo.net\/weblog\/wp-json\/wp\/v2\/tags?post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}