{"id":6023,"date":"2015-08-06T12:15:57","date_gmt":"2015-08-06T09:15:57","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=6023"},"modified":"2018-01-08T14:14:50","modified_gmt":"2018-01-08T12:14:50","slug":"css-table-layout-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/","title":{"rendered":"CSS Table-Layout Example"},"content":{"rendered":"<p>The aim of this example is to go through the <code>table-layout<\/code> property of CSS. The table-layout CSS property defines the algorithm to be used to layout the table cells, rows, and columns. The CSS table-layout property has basic support with the following browsers:<\/p>\n<p>-Chrome<br \/>\n-Firefox<br \/>\n-Internet Explorer 5+ (IE 5+)<br \/>\n-Opera 7+<br \/>\n-Safari (WebKit)<\/p>\n<p>Since the application of the property is fairly easy, we&#8217;ll go through some more advanced examples after understanding the basics.<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;nAkUl5IbAjqlXSla&#8217;]<\/p>\n<h2>1. Basic Setup &amp; Application<\/h2>\n<p>Go ahead and create a new html document and add the basic sytnax in it like so:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n\t&lt;title&gt;CSS Table-Layout Example&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n&lt;!-- STYLE SECTION --&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\n\r\n&lt;\/style&gt;\r\n\r\n&lt;!-- HTML SECTION --&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<h3>1.1 Syntax &amp; Values<\/h3>\n<p>The basic application of the property follows this structure <code>table-layout: value;<\/code> and possible values are:<\/p>\n<p>\/* Keyword values *\/<\/p>\n<pre class=\"brush:css\">\r\ntable-layout: auto;\r\ntable-layout: fixed;\r\n<\/pre>\n<p>\/* Global values *\/<\/p>\n<pre class=\"brush:css\">\r\ntable-layout: inherit;\r\ntable-layout: initial;\r\ntable-layout: unset;\r\n<\/pre>\n<p>The keyword values are the ones most used in our everyday experience, but what do they mean?<\/p>\n<p>1. <code>auto<\/code><br \/>\nAn automatic table layout algorithm is commonly used by most browsers for table layout. The width of the table and its cells depends on the content thereof.<\/p>\n<p>2. <code>fixed<\/code><br \/>\nTable and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.<\/p>\n<p>Under the &#8220;fixed&#8221; layout method, the entire table can be rendered once the first table row has been downloaded and analyzed. This can speed up rendering time over the &#8220;automatic&#8221; layout method, but subsequent cell content may not fit in the column widths provided. Any cell that has content that overflows uses the overflow property to determine whether to clip the overflow content.<\/p>\n<h3>1.2 Application<\/h3>\n<p>So, after we saw the syntax and values of the table-layout, let&#8217;s now apply it somewhere in our code. Take a look at the code below:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- HTML SECTION  --&gt;\r\n\r\n&lt;!-- Table-Layout: Auto --&gt;\r\n&lt;table class=\"ex1\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td width=\"5%\"&gt;1000000000000000000000000000&lt;\/td&gt;\r\n    &lt;td width=\"95%\"&gt;10000000&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt; &lt;!-- end table --&gt;\r\n\r\n&lt;!-- Table-Layout: Fixed --&gt;\r\n&lt;table class=\"ex2\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td width=\"5%\"&gt;1000000000000000000000000000&lt;\/td&gt;\r\n    &lt;td width=\"95%\"&gt;10000000&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;&lt;!-- end table --&gt;\r\n<\/pre>\n<p>So, we&#8217;ve set up two tables to show the two property values in separate tables, inside we;ve added one table row for each of them and two table data, which will be the element affected by the property value set, reflecting the changes. Next, we&#8217;re giving the tables some basic properties and then the <code>table-layout<\/code> property, once with an <code>auto<\/code> value and then <code>fixed<\/code>.<\/p>\n<pre class=\"brush:css\">\r\n&lt;!-- STYLE  SECTION --&gt;\r\n\r\n&lt;style type=\"text\/css\"&gt;\r\ntable {\r\n    border-collapse: separate;\r\n    width: 100%;\r\n    border: 1px solid black;\r\n}\r\n\r\ntd {\r\n    border: 1px solid black;\r\n}\r\n\r\ntable.ex1 {\r\n    table-layout: auto; \/* auto value for the first table *\/\r\n}\r\n\r\ntable.ex2 {\r\n    table-layout: fixed; \/* fixed value for the second table *\/\r\n}\r\n&lt;\/style&gt;\r\n<\/pre>\n<p>This would look like this:<br \/>\n<figure id=\"attachment_6031\" aria-describedby=\"caption-attachment-6031\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout1.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout1.jpg\" alt=\"Basic Table-Layout Properties Applied\" width=\"820\" height=\"245\" class=\"size-full wp-image-6031\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout1.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout1-300x90.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-6031\" class=\"wp-caption-text\">Basic Table-Layout Properties Applied<\/figcaption><\/figure><\/p>\n<h2>2. Fixed Value Complicated Example<\/h2>\n<p>Going deep into this, imagine you had a full consistent table with lots of data, and messy ones. You&#8217;d probably want to have disordered rows and columns becaouse of your very specific needs where, for example, you could have nested rows, stacked columns and so on and so fourth. Look at how such a detailed table would look like:<\/p>\n<pre class=\"brush:xml\">\r\n&lt;!-- EXAMPLE 1 --&gt;\r\n\r\n&lt;h1&gt;Fixed Tables Solve Some Issues&lt;\/h1&gt;\r\n\r\n&lt;table class=\"sturdy\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;I'm 25% wide.&lt;\/td&gt;\r\n    &lt;td&gt;I'm 50% wide.&lt;\/td&gt;\r\n    &lt;td&gt;I'm 25% wide.&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;Text down here doesn't affect layout anymore.&lt;\/td&gt;\r\n    &lt;td&gt;...&lt;\/td&gt;\r\n    &lt;td&gt;This long sentence would probably have pushed this row wider.&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n\r\n&lt;table class=\"nobreak\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;The table itself will not exceed&lt;\/td&gt;\r\n    &lt;td&gt;the exact width you set the table to be, from content alone.&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n\r\n&lt;table class=\"wider\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;Well, unless YOU force it wider by&lt;\/td&gt;\r\n    &lt;td&gt;setting the cells wider (combined) than the table is wide.&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n\r\n&lt;table class=\"ignoreyou\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;It won't go smaller though, it will do a calculation.&lt;\/td&gt;\r\n    &lt;td&gt;...&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;Set to 10px&lt;br&gt;Thus 25% of total 40px&lt;\/td&gt;\r\n    &lt;td&gt;Set to 30px&lt;br&gt;Thus 75% of total 40px&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n\r\n&lt;table class=\"cut-off\"&gt;\r\n  &lt;thead&gt;\r\n  &lt;tr&gt;\r\n    &lt;th&gt;My favorite feature is being able to ellipsis text.&lt;\/th&gt;\r\n    &lt;th&gt;It's great for user-generated text.&lt;\/th&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;\/thead&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;Supercalifragilisticexpialidocious Something something something something attrotious&lt;\/td&gt;\r\n    &lt;td&gt;1&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;This little piggy went to market. This little piggy went to bed.&lt;\/td&gt;\r\n    &lt;td&gt;1&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis amet molestiae earum accusantium nostrum eveniet ipsum soluta ut reprehenderit vel incidunt laboriosam dolorum maiores! Earum deserunt sit unde? Sunt voluptatem!&lt;\/td&gt;\r\n    &lt;td&gt;1&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n\r\n&lt;table class=\"hide\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td class=\"img-1\"&gt;Overflow can be hidden.&lt;\/td&gt;\r\n    &lt;td class=\"img-2\"&gt;\r\n    &lt;img src=\"https:\/\/s3-us-west-2.amazonaws.com\/s.cdpn.io\/3\/dock-slice-2.png\" \/&gt;\r\n    &lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n\r\n&lt;table class=\"scroll-code\"&gt;\r\n  &lt;tr&gt;\r\n    &lt;td&gt;Overflow can scroll. Except in Firefox.&lt;\/td&gt;\r\n    &lt;td&gt;&lt;pre&gt;\r\nbody.logged-in article &gt; h2 {\r\n  background: linear-gradient(rgba(0, 0, 0, 0), rgba(255, 0, 0, 0.2));\r\n}\r\n    &lt;\/pre&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n&lt;\/table&gt;\r\n<\/pre>\n<p>Things get a lot sturdier and more predictable with property\/value in place. The layout is fixed based on the first row. Set the width of those, and the rest of the table follows.<\/p>\n<pre class=\"brush:css\">\r\n\/*EXMAPLE 1*\/\r\ntd, th {\r\n  border: 1px solid black;\r\n}\r\ntable {\r\n  margin: 15px 0;\r\n  border: 1px solid black;\r\n  table-layout: fixed;\r\n  width: 100%; \/* must have this set *\/\r\n}\r\nhtml {\r\n  background: #ccc;\r\n}\r\nbody {\r\n  max-width: 400px;\r\n  margin: 0 auto;\r\n  background: white;\r\n  padding: 10px;\r\n}\r\n\r\n.sturdy td:nth-child(1),\r\n.sturdy td:nth-child(3) {\r\n  width: 25%;\r\n}\r\n.sturdy td:nth-child(2) {\r\n  width: 50%;\r\n}\r\n\r\n.nobreak {\r\n  white-space: nowrap;\r\n}\r\n\r\n.wider td {\r\n  width: 300px;\r\n}\r\n\r\n.ignoreyou td:nth-child(1) {\r\n  width: 10px;\r\n}\r\n.ignoreyou td:nth-child(2) {\r\n  width: 30px;\r\n}\r\n\r\n.cut-off th:nth-child(1) {\r\n  width: 75%;\r\n}\r\n.cut-off td:nth-child(1) {\r\n  overflow: hidden;\r\n  white-space: nowrap;\r\n  text-overflow: ellipsis;\r\n}\r\n.cut-off th:nth-child(2) {\r\n  width: 25%;\r\n}\r\n.cut-off td:nth-child(2) span {\r\n  display: block;\r\n\r\n}\r\n\r\n.hide td {\r\n  overflow: hidden;\r\n}\r\n\r\n.scroll-code td {\r\n  overflow: auto;\r\n}\r\n<\/pre>\n<p>Well, some things are fixed, others just got messed up:<br \/>\n<figure id=\"attachment_6034\" aria-describedby=\"caption-attachment-6034\" style=\"width: 820px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout2.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout2.jpg\" alt=\"A complicated table case where fixed value is applied to the property\" width=\"820\" height=\"627\" class=\"size-full wp-image-6034\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout2.jpg 820w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/table-layout2-300x229.jpg 300w\" sizes=\"(max-width: 820px) 100vw, 820px\" \/><\/a><figcaption id=\"caption-attachment-6034\" class=\"wp-caption-text\">A complicated table case where fixed value is applied to the property<\/figcaption><\/figure><\/p>\n<p>Since fixed is the only distinct value the property can get  (because auto is just going to give cells the right space according to the text inside), you&#8217;ll just have to keep an eye on using the <code>fixed<\/code> value and notice where and when you can take advantage of it. It&#8217;s not that useful, however.<\/p>\n<h2>3. Conclusion<\/h2>\n<p>To conclude we can state that the <code>table-layout<\/code> property is a good way to set table cells to fixed widths, making it easier for cases when your content is limited\/fixed to a specific width, while it is not recommended to be used when considering large piece of data and information being passed into the cell.<\/p>\n<p>Such case, for example, might be the information coming from a user input, that needs to be added to a table. Obviously, in this case you are not sure about how much space the text is going to occupy, so an <code>auto<\/code> value would be your most preferable choice. Above, the example showed different cases of how the fixed value could be the wrong one to be used. However, it is always on you to decide.<\/p>\n<h2>4. Download<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/07\/CSS-Table-Layout.zip\"><strong>CSS Table-Layout<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the table cells, rows, and columns. The CSS table-layout property has basic support with the following browsers: -Chrome -Firefox -Internet Explorer 5+ (IE 5+) -Opera 7+ -Safari (WebKit) Since &hellip;<\/p>\n","protected":false},"author":75,"featured_media":917,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-6023","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CSS Table-Layout Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the\" \/>\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.webcodegeeks.com\/css\/css-table-layout-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Table-Layout Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/fabiocimo\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-06T09:15:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-08T12:14:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Fabio Cimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fabiocimo\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabio Cimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/\"},\"author\":{\"name\":\"Fabio Cimo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\"},\"headline\":\"CSS Table-Layout Example\",\"datePublished\":\"2015-08-06T09:15:57+00:00\",\"dateModified\":\"2018-01-08T12:14:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/\"},\"wordCount\":697,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/\",\"name\":\"CSS Table-Layout Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"datePublished\":\"2015-08-06T09:15:57+00:00\",\"dateModified\":\"2018-01-08T12:14:50+00:00\",\"description\":\"The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/css\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CSS Table-Layout Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22\",\"name\":\"Fabio Cimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g\",\"caption\":\"Fabio Cimo\"},\"description\":\"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.\",\"sameAs\":[\"https:\/\/www.facebook.com\/fabiocimo\",\"https:\/\/al.linkedin.com\/in\/fabiocimo\",\"https:\/\/x.com\/fabiocimo\",\"https:\/\/www.youtube.com\/fabiocimo1\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Table-Layout Example - Web Code Geeks - 2026","description":"The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the","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.webcodegeeks.com\/css\/css-table-layout-example\/","og_locale":"en_US","og_type":"article","og_title":"CSS Table-Layout Example - Web Code Geeks - 2026","og_description":"The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the","og_url":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/fabiocimo","article_published_time":"2015-08-06T09:15:57+00:00","article_modified_time":"2018-01-08T12:14:50+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","type":"image\/jpeg"}],"author":"Fabio Cimo","twitter_card":"summary_large_image","twitter_creator":"@fabiocimo","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Fabio Cimo","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/"},"author":{"name":"Fabio Cimo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22"},"headline":"CSS Table-Layout Example","datePublished":"2015-08-06T09:15:57+00:00","dateModified":"2018-01-08T12:14:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/"},"wordCount":697,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/","url":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/","name":"CSS Table-Layout Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","datePublished":"2015-08-06T09:15:57+00:00","dateModified":"2018-01-08T12:14:50+00:00","description":"The aim of this example is to go through the table-layout property of CSS. The table-layout CSS property defines the algorithm to be used to layout the","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/css\/css-table-layout-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/www.webcodegeeks.com\/category\/css\/"},{"@type":"ListItem","position":3,"name":"CSS Table-Layout Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/1dfb88b4a8d08c37a6080311fd330a22","name":"Fabio Cimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b3df055f2e1b62e238889fafbb16121c68aab1adcd11af670e185cafae201b3b?s=96&d=mm&r=g","caption":"Fabio Cimo"},"description":"Fabio is a passionate student in web tehnologies including front-end (HTML\/CSS) and web design. He likes exploring as much as possible about the world wide web and how it can be more productive for us all. Currently he studies Computer Engineering, at the same time he works as a freelancer on both web programming and graphic design.","sameAs":["https:\/\/www.facebook.com\/fabiocimo","https:\/\/al.linkedin.com\/in\/fabiocimo","https:\/\/x.com\/fabiocimo","https:\/\/www.youtube.com\/fabiocimo1"],"url":"https:\/\/www.webcodegeeks.com\/author\/fabio-cimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/6023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=6023"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/6023\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/917"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=6023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=6023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=6023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}