{"id":99,"date":"2011-05-13T17:31:16","date_gmt":"2011-05-14T03:31:16","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=99"},"modified":"2020-05-03T16:44:10","modified_gmt":"2020-05-04T02:44:10","slug":"no-table-cell-or-table-row-in-ie-css","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/","title":{"rendered":"No table-cell or table-row in IE CSS"},"content":{"rendered":"

Internet Explorer, How do I loathe thee?
\nLet me count the ways.<\/h2>\n

As stated on the w3schools website,<\/p>\n

[quote]The values “inline-table”, “run-in”, “table”, “table-caption”, “table-cell”, “table-column”, “table-column-group”, “table-row”, “table-row-group”, and “inherit” is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports the values.[\/quote]<\/p>\n

I had a project where I needed to create a photo gallery. \u00a0The goal was to get the gallery to look like iStockPhoto<\/a> with the images all bottom-aligned, evenly spaced, etc, etc. \u00a0Well in creating the gallery I had a hard time aligning the photos on the bottom, so I took a look at how istock did it. \u00a0They use “table-cell” display option and vertically align the image to the bottom. \u00a0So I tried it, but soon found that Internet Explorer does not support that option. \u00a0And then I found that istock was no exception.<\/p>\n

<\/a>
iStock with Chrome<\/figcaption><\/figure>\n

 <\/p>\n

\n
\n
<\/a><\/dt>\n
iStock with IE<\/dd>\n<\/dl>\n<\/div>\n

 <\/p>\n

Solution:<\/h2>\n

I did not personally do this solution as this was not too important. \u00a0However someone on Stack Overflow<\/a> seems to have solved it with jQuery:<\/p>\n

$(document).ready(function(){\n  if ($.browser.msie && $.browser.version == 7)\n  {\n    $(\".tablecell\").wrap(\"<td \/>\");\n    $(\".tablerow\").wrap(\"<tr \/>\");\n    $(\".table\").wrapInner(\"<table \/>\");\n  }\n});<\/pre>\n

the above script assumes you have divs using style such as:<\/p>\n

<style>\n.table     { display: table; }\n.tablerow  { display: table-row; }\n.tablecell { display: table-cell; }\n<\/style><\/pre>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[2],"tags":[17,34],"yoast_head":"\nNo table-cell or table-row in IE CSS - My Monkey Do<\/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:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"No table-cell or table-row in IE CSS - My Monkey Do\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/\" \/>\n<meta property=\"og:site_name\" content=\"My Monkey Do\" \/>\n<meta property=\"article:published_time\" content=\"2011-05-14T03:31:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-04T02:44:10+00:00\" \/>\n<meta name=\"author\" content=\"Webhead\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Webhead\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/\",\"url\":\"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/\",\"name\":\"No table-cell or table-row in IE CSS - My Monkey Do\",\"isPartOf\":{\"@id\":\"https:\/\/mymonkeydo.com\/#website\"},\"datePublished\":\"2011-05-14T03:31:16+00:00\",\"dateModified\":\"2020-05-04T02:44:10+00:00\",\"author\":{\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\"},\"breadcrumb\":{\"@id\":\"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mymonkeydo.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"No table-cell or table-row in IE CSS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mymonkeydo.com\/#website\",\"url\":\"https:\/\/mymonkeydo.com\/\",\"name\":\"My Monkey Do\",\"description\":\"A Log of Coding Solutions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mymonkeydo.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829\",\"name\":\"Webhead\",\"url\":\"https:\/\/mymonkeydo.com\/author\/corey\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"No table-cell or table-row in IE CSS - My Monkey Do","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:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/","og_locale":"en_US","og_type":"article","og_title":"No table-cell or table-row in IE CSS - My Monkey Do","og_url":"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/","og_site_name":"My Monkey Do","article_published_time":"2011-05-14T03:31:16+00:00","article_modified_time":"2020-05-04T02:44:10+00:00","author":"Webhead","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Webhead","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/","url":"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/","name":"No table-cell or table-row in IE CSS - My Monkey Do","isPartOf":{"@id":"https:\/\/mymonkeydo.com\/#website"},"datePublished":"2011-05-14T03:31:16+00:00","dateModified":"2020-05-04T02:44:10+00:00","author":{"@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829"},"breadcrumb":{"@id":"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mymonkeydo.com\/no-table-cell-or-table-row-in-ie-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mymonkeydo.com\/"},{"@type":"ListItem","position":2,"name":"No table-cell or table-row in IE CSS"}]},{"@type":"WebSite","@id":"https:\/\/mymonkeydo.com\/#website","url":"https:\/\/mymonkeydo.com\/","name":"My Monkey Do","description":"A Log of Coding Solutions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mymonkeydo.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mymonkeydo.com\/#\/schema\/person\/b16fc650a8c182faaac896bab099b829","name":"Webhead","url":"https:\/\/mymonkeydo.com\/author\/corey\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:attachment":[{"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mymonkeydo.com\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}