{"id":5175,"date":"2019-11-15T11:47:22","date_gmt":"2019-11-15T06:17:22","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5175"},"modified":"2019-11-16T19:08:38","modified_gmt":"2019-11-16T13:38:38","slug":"space-between-rows-in-a-table-using-css-property","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/space-between-rows-in-a-table-using-css-property\/","title":{"rendered":"SPACE BETWEEN ROWS IN A TABLE USING CSS PROPERTY"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">SPACE BETWEEN ROWS IN A TABLE USING CSS PROPERTY<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Date : 15\/11\/2019<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">SPACE BETWEEN ROWS IN A TABLE USING CSS PROPERTY<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Introduction<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We can use  &#8220;<strong>border-collapse<\/strong>&#8221; and &#8220;<strong>border-spacing<\/strong>&#8221; properties to leave space between rows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>border-collapse<\/strong> =&gt; Used to specify whether the border of the table is collapse or not.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <strong>border-spacing<\/strong>&#8221; =&gt;  Used to set the level of the space between cells.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example<\/strong><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html> \n&lt;html> \n    &lt;head> \n        &lt;style> \n            table { \n               border:  1px solid black;\n                border-collapse: collapse; \n            } \n            \n            th, td { \n                width:150px; \n                text-align:center; \n                border:1px solid black; \n                padding:5px \n              \n            } \n           \n            .check { \n                border-collapse:separate; \n                border-spacing:25px 15px;\n            } \n           \n        &lt;\/style> \n    &lt;\/head> \n    &lt;body> \n        &lt;center> \n        \n        &lt;table class = \"check\"> \n            &lt;tr> \n                &lt;th>ID&lt;\/th> \n                &lt;th>Name&lt;\/th> \n                &lt;th>Age&lt;\/th> \n            &lt;\/tr> \n        &lt;\/table> \n        &lt;table class = \"check\"> \n            &lt;tr> \n                &lt;td>301&lt;\/td> \n                &lt;td>AAA&lt;\/td> \n                &lt;td>20&lt;\/td> \n                \n            &lt;\/tr> \n            &lt;tr> \n                &lt;td>302&lt;\/td> \n                &lt;td>BBB&lt;\/td> \n                &lt;td>24&lt;\/td> \n                \n            &lt;\/tr> \n            &lt;tr> \n                &lt;td>303&lt;\/td> \n                &lt;td>CCC&lt;\/td> \n                &lt;td>21&lt;\/td> \n                \n            &lt;\/tr> \n        &lt;\/table> \n        &lt;\/center> \n    &lt;\/body> \n&lt;\/html> <\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Output:<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"654\" height=\"244\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/11\/Screenshot-2019-11-15-at-11.46.31.png\" alt=\"\" class=\"wp-image-5176\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/11\/Screenshot-2019-11-15-at-11.46.31.png 654w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/11\/Screenshot-2019-11-15-at-11.46.31-300x112.png 300w\" sizes=\"(max-width: 654px) 100vw, 654px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for using phoenix solutions. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>SPACE BETWEEN ROWS IN A TABLE USING CSS PROPERTY Date : 15\/11\/2019 SPACE BETWEEN ROWS IN A TABLE USING CSS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[723,724,495,726],"class_list":["post-5175","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-border-collapse","tag-border-spacing","tag-html","tag-table-space","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1lt","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5175"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5175\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}