:root{--primary-color:#454545;--accent-color:#f05d61;--hovered-accent-color:#ee464a;--primary-text-color:#383838;--hovered-text-color:rgba(56,56,56,0.8);--secondary-text-color:#5e5e5e;--light-text-color:#fff;--lightgrey-text-color:#d1d1d1;--main-bg:#fff;--body-light-bg:#fafafa;--body-dark-bg:#f5f5f5;--link-color:#f05d61;--blog-link-color:#f99;--hovered-link-color:#ee464a;--nav-bg:#fff;--nav-hovered-bg:#1f222b;--landing-bg:#4e7b99;--landing-hovered-bg:#4a6e86;--border-color:#e6e6e6;--footer-bg:#21242d;--widget-bg:#f3f3f3;--widget-title:#5e5e5e;--widget-text:#868383;--widget-text-hover:#5e5e5e;--pagination-color:#2e313a;--success-color:#25d366;--warning-color:#f7ea00;--warm-color:#f1776c;--danger-color:red;--fb-color:#3b5999;--tw-color:#55acee;--gplus-color:#dd4b39;--ig-color:#3f729b;--wa-color:#25d366;--mail-color:#0084ff;--box-shadow:0 3px 2px 0 rgba(0,0,0,0.03);--black-shadow:0px 4px 18px -3px rgba(17,17,17,0.06);--hovered-black-shadow:0 3px 16px 0 rgba(0,0,0,0.11);--font-body:"Raleway",sans-serif;--font-heading:"Frank Ruhl Libre",serif}html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;margin-bottom:1em!important}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}blockquote,body,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,legend,ol,p,pre,ul{margin:0;padding:0}li>ol,li>ul{margin-bottom:0}table{border-collapse:collapse;border-spacing:0}fieldset{min-width:0}*{box-sizing:border-box;-webkit-font-smoothing:antialiased}html{overflow-y:scroll;font-size:62.5%}body,html{overflow-x:hidden}body{color:#5e5e5e;color:var(--secondary-text-color);font-family:Raleway,sans-serif;font-family:var(--font-body);font-size:1.6rem;line-height:1.6em;font-weight:400;font-style:normal;letter-spacing:0;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}::selection{text-shadow:none;background:#f05d61;background:var(--link-color)}hr{position:relative;display:block;width:100%;padding:0;height:1px;border:0;border-top:1px solid #e6e6e6;border-top:1px solid var(--border-color);margin-bottom:1em}audio,canvas,iframe,img,svg,video{vertical-align:middle}img{max-width:100%;height:auto}iframe{margin-bottom:1.2em}fieldset{margin:0;padding:0;border:0}input[type=email],input[type=tel],input[type=text],textarea{border:1px solid #e6e6e6;border:1px solid var(--border-color);padding:6px 10px;outline:none}textarea{resize:vertical}[type=reset],[type=submit],button,html [type=button]{padding:.5em 1em;border:none;outline:none}blockquote,dl,ol,p,ul{margin:0 0 1.5em}ol,ul{padding-left:1em;padding-right:1.5em;margin-left:.5em}ol ol,ol ul,ul ol,ul ul{margin:.5em 0 1em}ul{list-style:disc}ol{list-style:decimal}li{margin:.5em 0;padding-left:.5em;line-height:1.6em}dt{float:left;margin:0 20px 0 0;width:120px;color:#454545;color:var(--primary-color);font-weight:500;text-align:right}dd{margin:0 0 5px;text-align:left}blockquote{margin:1.5em 0;padding:.25em 1.6em;border-left:.3em solid #e6e6e6;border-left:.3em solid var(--border-color);background:#fafafa;background:var(--body-light-bg)}blockquote p{margin:.8em 0;font-family:monospace,monospace;font-style:italic;font-size:1.7rem;font-weight:300}blockquote small{display:inline-block;margin:.8em 0 .8em 1.5em;font-size:.9em;opacity:.8}blockquote small:before{content:"\2014 \00A0"}blockquote cite{font-weight:700}blockquote cite a{font-weight:400}a{text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4,h5,h6{margin-top:0;font-family:Frank Ruhl Libre,serif;font-family:var(--font-heading);line-height:1.4;font-weight:600;text-rendering:optimizeLegibility}h1{margin:0 0 1em;font-size:3.5rem}@media (max-width:767.99px){h1{font-size:2.6rem}}h2{margin:0 0 1em;font-size:2.8rem}@media (max-width:767.99px){h2{font-size:2.2rem}}h3{margin:0 0 1em;font-size:2.3rem}@media (max-width:767.99px){h3{font-size:2rem}}h4{font-size:1.8rem}h4,h5{margin:0 0 1em;font-weight:500}h5{font-size:1.6rem}h6{margin:0 0 1em;font-size:1.4rem;font-weight:500}table{border-collapse:separate;border-spacing:1px;background:#fafafa;background:var(--body-light-bg);margin-bottom:1.5em;border:1px solid #e6e6e6;border:1px solid var(--border-color)}table td,table th{padding:.5em 2em}table th{color:#383838;color:var(--primary-text-color)}table td:hover,table th{background:#f5f5f5;background:var(--body-dark-bg)}table td:hover{color:#5e5e5e;color:var(--secondary-text-color)}table tr:nth-child(odd){background:color(#fafafa blackness(2%));background:color(var(--body-light-bg) blackness(2%))}table tr:nth-child(2n){background:color(#fafafa blackness(4%));background:color(var(--body-light-bg) blackness(4%))}::placeholder{color:color(#e6e6e6 blackness(20%));color:color(var(--border-color) blackness(20%));font-size:1.4rem;opacity:1}:-ms-input-placeholder{color:#e6e6e6;color:var(--border-color)}::-ms-input-placeholder{color:#e6e6e6;color:var(--border-color)}@media (max-width:767.99px){table td,table th{padding:.5em .6em}}@font-face{font-family:fontello;src:url(../font/fontello.eot?2663856);src:url(../font/fontello.eot?2663856#iefix) format("embedded-opentype"),url(../font/fontello.woff2?2663856) format("woff2"),url(../font/fontello.woff?2663856) format("woff"),url(../font/fontello.ttf?2663856) format("truetype"),url(../font/fontello.svg?2663856#fontello) format("svg");font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-calendar:before{content:"\e800"}.icon-heart:before{content:"\e801"}.icon-comment:before{content:"\e802"}.icon-up-big:before{content:"\e803"}.icon-tag:before{content:"\e804"}.icon-eye:before{content:"\e805"}.icon-location:before{content:"\e806"}.icon-chart-bar:before{content:"\e807"}.icon-mail:before{content:"\e808"}.icon-link:before{content:"\e809"}.icon-search:before{content:"\e80a"}.icon-up-open:before{content:"\e80b"}.icon-picture:before{content:"\e80c"}.icon-ok:before{content:"\e80d"}.icon-ok-circle:before{content:"\e80e"}.icon-cancel:before{content:"\e80f"}.icon-basket:before{content:"\e810"}.icon-bag:before{content:"\e811"}.icon-basket-1:before{content:"\e812"}.icon-tag-1:before{content:"\e813"}.icon-globe:before{content:"\e814"}.icon-tag-2:before{content:"\e815"}.icon-truck:before{content:"\e816"}.icon-up-dir:before{content:"\e817"}.icon-gift:before{content:"\e818"}.icon-down:before{content:"\e819"}.icon-plus:before{content:"\e81a"}.icon-minus:before{content:"\e81b"}.icon-home:before{content:"\e81c"}.icon-quote-left:before{content:"\e81d"}.icon-quote-right:before{content:"\e81e"}.icon-users:before{content:"\e81f"}.icon-barcode:before{content:"\e820"}.icon-lock:before{content:"\e821"}.icon-home-1:before{content:"\e822"}.icon-credit-card:before{content:"\e826"}.icon-twitter:before{content:"\f099"}.icon-facebook:before{content:"\f09a"}.icon-rss:before{content:"\f09e"}.icon-pinterest-circled:before{content:"\f0d2"}.icon-gplus:before{content:"\f0d5"}.icon-download:before{content:"\f0ed"}.icon-angle-double-left:before{content:"\f100"}.icon-angle-double-right:before{content:"\f101"}.icon-angle-left:before{content:"\f104"}.icon-angle-right:before{content:"\f105"}.icon-angle-up:before{content:"\f106"}.icon-angle-down:before{content:"\f107"}.icon-shield:before{content:"\f132"}.icon-dollar:before{content:"\f155"}.icon-youtube-play:before{content:"\f16a"}.icon-instagram:before{content:"\f16d"}.icon-left:before{content:"\f177"}.icon-right:before{content:"\f178"}.icon-whatsapp:before{content:"\f232"}.icon-credit-card-alt:before{content:"\f283"}.icon-shopping-basket:before{content:"\f291"}.icon-telegram:before{content:"\f2c6"}.grid-content{display:grid;grid-column-gap:calc(1.28571rem + .5vw);grid-template-columns:1fr auto 1fr}@media (min-width:56.25em){.grid-content{grid-column-gap:calc(2rem + .5vw);grid-template-columns:1fr minmax(auto,117rem) 1fr}}.grid-wrapper{grid-column:2/3;display:grid;grid-column-gap:calc(1.28571rem + .5vw);grid-row-gap:calc(1.28571rem + .5vw);margin-top:3.2rem}@media (min-width:56.25em){.grid-wrapper{grid-column-gap:calc(2rem + .5vw);grid-row-gap:calc(2rem + .5vw)}}@media (max-width:37.4375em){.grid-wrapper{grid-column-gap:calc(1.28571rem + .5vw);grid-row-gap:calc(1.28571rem + .5vw);margin-top:2.4rem}}.grid-col-2,.grid-col-3{grid-template-columns:repeat(2,1fr)}.grid-col-4{grid-template-columns:repeat(3,1fr)}.grid-col-5{grid-template-columns:repeat(4,1fr)}@media (min-width:56.25em){.grid-col-2{grid-template-columns:repeat(2,1fr)}.grid-col-3{grid-template-columns:repeat(3,1fr)}.grid-col-4{grid-template-columns:repeat(4,1fr)}.grid-col-5{grid-template-columns:repeat(5,1fr)}}@media (max-width:37.4375em){.grid-col-2,.grid-col-3{grid-template-columns:auto}.grid-col-4,.grid-col-5{grid-template-columns:repeat(2,1fr)}}.card-col-3,.card-col-4,.card-col-5{grid-column:span 1}.grid--full{grid-column:span 4}@media (min-width:56.25em){.grid--full{grid-column:span 5}}@media (max-width:37.4375em){.grid--full{grid-column:span 2}}.grid-nowrap{grid-column:1/4;display:grid;grid-row-gap:calc(1.28571rem + .5vw);grid-template-columns:repeat(2,1fr)}@media (min-width:56.25em){.grid-nowrap{grid-row-gap:calc(2rem + .5vw)}}@media (max-width:37.4375em){.grid-nowrap{grid-row-gap:calc(1.28571rem + .5vw);grid-template-columns:auto}}.nowrap-col-2{grid-column:span 1}@media (max-width:56.1875em){.post-wrapper{grid-template-columns:auto}.post,.sidebar{grid-column:span 1}}@media (min-width:56.25em){.post-wrapper{grid-template-columns:repeat(7,1fr)}.post{grid-column:span 5}.sidebar{grid-column:span 2}}.flex-box{display:flex;flex-wrap:wrap;margin-left:-1em;margin-right:-1em}.flex-2-col{flex-basis:50%}.flex-2-col,.flex-3-col{padding-left:1em;padding-right:1em}.flex-3-col{flex-basis:33.33%}@media (max-width:37.4375em){.flex-2-col,.flex-3-col{flex-basis:100%;padding-left:1em;padding-right:1em}}:root{--nav-height:52px}.site__header{display:grid;grid-column-gap:calc(1.28571rem + .5vw);grid-template-columns:1fr minmax(auto,59.99rem) 1fr}@media (min-width:37.5em) and (max-width:56.1875em){.site__header{grid-template-columns:1fr minmax(auto,89.99rem) 1fr}}@media (min-width:56.25em){.site__header{grid-column-gap:calc(2rem + .5vw);grid-template-columns:1fr minmax(auto,117rem) 1fr}}.header__wrapper{grid-column:2/3}.nav__wrapper,.nav__wrapper--fixed{display:flex;align-items:center;justify-content:space-between;position:relative}.nav__default{height:52px;height:var(--nav-height)}.nav__brand--ltc{padding:1em 0 0}@media (min-width:56.25em){.header--llm{box-shadow:0 6px 12px 0 rgba(0,0,0,.08)}.nav__default{justify-content:flex-end}.nav--ltc{border-top:1px solid #e6e6e6;border-top:1px solid var(--border-color);border-bottom:1px solid #e6e6e6;border-bottom:1px solid var(--border-color)}.nav--ltc,.nav--ltc .nav__menu-item{justify-content:center}.nav__brand{margin-right:auto}.nav__brand--ltc{text-align:center;padding:1em 0}}.nav__toggle{position:absolute;top:-2.25em;right:0;width:23px;height:23px;cursor:pointer}.nav__toggle.is-active{border-top-right-radius:8px;border-bottom-right-radius:8px}.nav__toggle-item,.nav__toggle-item:after,.nav__toggle-item:before{cursor:pointer;height:2px;width:22px;background:#5e5e5e;background:var(--secondary-text-color);position:absolute;display:block;content:"";transition:all .3s ease-in-out}.nav__toggle-item{top:8px}.nav__toggle-item:before{top:-6px}.nav__toggle-item:after{bottom:-6px}.nav__toggle.is-active .nav__toggle-item{background-color:transparent}.nav__toggle.is-active .nav__toggle-item:after,.nav__toggle.is-active .nav__toggle-item:before{background:#5e5e5e;background:var(--secondary-text-color);top:0}.nav__toggle.is-active .nav__toggle-item:before{transform:rotate(45deg)}.nav__toggle.is-active .nav__toggle-item:after{transform:rotate(-45deg)}@media (min-width:56.25em){.nav__toggle{position:relative}}amp-sidebar{width:380px;background:#fff}.close-sidebar{text-align:end;font-size:22px;padding-top:1em;padding-right:1em;outline:none}.nav-sidebar__menu{list-style:none;padding:1em 1.5em;margin:0}.nav-sidebar__menu li{position:relative;padding:0}.nav-sidebar__menu li a{text-decoration:none;color:#5e5e5e;color:var(--secondary-text-color)}.nav-sidebar__menu li a:hover{color:#f05d61;color:var(--link-color)}.nav-sidebar__submenu{list-style:none;padding:0 1em;margin:0;border-left:1px solid #e6e6e6;border-left:1px solid var(--border-color)}.menu,.menu li,.submenu,.submenu li{padding:0;margin:0}.menu,.submenu{list-style:none}.menu li,.submenu li{position:relative}.menu li a,.menu li a:visited,.submenu li a,.submenu li a:visited{display:block;font-size:1.4rem;font-weight:400;text-decoration:none}.menu li a:active,.menu li a:hover,.menu li a:visited:active,.menu li a:visited:hover,.submenu li a:active,.submenu li a:hover,.submenu li a:visited:active,.submenu li a:visited:hover{text-decoration:none}.menu li a,.menu li a:visited{text-transform:uppercase}.submenu li a,.submenu li a:visited{text-transform:lowercase}.nav__submenu-wrapper{height:0;opacity:0;overflow:hidden;overflow-x:hidden;overflow-y:hidden;transition:all .3s cubic-bezier(.275,1.375,.8,1)}.nav__submenu-wrapper.is-active{height:auto;opacity:1}.submenu-button{position:absolute;right:0;top:0;display:block;border-left:1px solid #e6e6e6;border-left:1px solid var(--border-color);height:36px;width:40px;cursor:pointer;z-index:3}.submenu-button:after,.submenu-button:before{position:absolute;display:block;background:#d1d1d1;background:var(--lightgrey-text-color);content:""}.submenu-button:before{top:14px;right:19px;width:2px;height:8px}.submenu-button:after{top:17px;right:16px;width:8px;height:2px}.submenu-button:active,.submenu-button:hover{background:#f5f5f5;background:var(--body-dark-bg)}.submenu-button.is-active:before{display:none}@media (max-width:56.1875em){.nav__menu{display:none;padding-top:1em}.menu{min-height:560px}.menu li{border-bottom:1px solid #e6e6e6;border-bottom:1px solid var(--border-color)}.menu li a{padding:5px 16px}.submenu li{border-bottom:1px solid #e6e6e6;border-bottom:1px solid var(--border-color)}.submenu li:last-child{border:none}.submenu li a{padding:4px 24px}}@media (min-width:56.25em){.nav__menu-item{display:flex;justify-content:flex-end}.menu li a,.menu li a:visited{line-height:52px;line-height:var(--nav-height);padding:0 1em}.submenu{box-shadow:0 5px 5px rgba(0,0,0,.25);position:absolute;visibility:hidden;white-space:nowrap;opacity:0;top:100%;transform:translateY(-2em);transform-origin:top;transition:all .3s ease-in-out 0s,visibility 0s linear .3s,z-index 0s linear .01s;width:230px;background:#fafafa;background:var(--body-light-bg);z-index:3}.submenu li a{display:block;line-height:3.2rem;padding:0 1em}.submenu li:last-child{padding-bottom:1em}.has-submenu:active>.submenu,.has-submenu:focus>.submenu,.has-submenu:hover>.submenu{visibility:visible;opacity:1;z-index:4;transform:translateY(0);transition-delay:0s,0s,.3s}}.post-featured__image{width:100%;height:auto}.post-card__tags,.post-featured__tags{font-size:1.1rem;text-transform:uppercase}.post-card__tags:active,.post-card__tags:hover,.post-featured__tags:active,.post-featured__tags:hover{text-decoration:none}.post-featured__title{font-size:1.7rem}.post-featured__meta{font-size:1.5rem}.post-featured__meta>img{width:30px;height:30px;border-radius:50%}.post-featured__author{padding:0 .5em}.post-card__link:active,.post-card__link:hover,.post-featured__link:active,.post-featured__link:hover{text-decoration:none}.post{display:flex;flex-wrap:wrap;align-content:flex-start;margin-left:-1.5em;margin-right:-1.5em}.post-card{flex-basis:50%;position:relative;display:flex;align-items:center;padding:1em 1.5em;margin:0}.post-card:first-child,.post-card:nth-child(2){padding-top:1.5em}.post-card:first-child:before,.post-card:nth-child(2):before{content:"";position:absolute;top:0;border-top:1px solid #e6e6e6;border-top:1px solid var(--border-color)}.post-card:first-child:before{width:calc(100% - 1.5em)}.post-card:nth-child(2):before{width:100%;left:-1.5em}.post-card:nth-child(2n){border-left:1px solid #e6e6e6;border-left:1px solid var(--border-color)}.post-card__media{flex-basis:34%;padding-top:4px}.post-card__body{flex-basis:66%;padding-left:1em}.post-card__title{font-size:1.5rem;font-weight:400}@media (max-width:37.4375em){.grid--featured{display:block}.post-featured{display:flex;padding:0 1em}.post-featured__media{flex-basis:35%;padding-top:6px}.post-featured__body{flex-basis:65%;padding-left:1em}.post-featured__title{font-size:1.4rem;font-weight:400;margin:0}.post-featured__meta{display:none}.post-featured:first-child{display:block;padding:0}.post-featured:first-child>.post-featured__body{padding:1em}.post-featured:first-child .post-featured__title{font-size:1.9rem;font-weight:500;margin:0}.post-featured__ads{padding-top:1.5em}.post-featured__ads img{display:block;margin:0 auto}.post,.post-card{display:block}.post-card{margin-bottom:1em}.post-card:first-child:before,.post-card:nth-child(2):before{content:none}.post-card__body{padding:1em 0 0}.post-card__title{font-size:1.6rem;font-weight:400;margin:0}}@media (min-width:37.5em) and (max-width:56.1875em){.post-featured__wrapper{grid-template-columns:repeat(3,1fr)}.post-featured:first-child{grid-column:1/4;display:flex}.post-featured:first-child>.post-featured__body,.post-featured:first-child>.post-featured__media{flex-basis:50%}.post-featured:first-child>.post-featured__body{padding:0 1em 0 1.5em}.post-featured:first-child>.post-featured__body .post-featured__tags{font-size:1.2rem}.post-featured:first-child>.post-featured__body .post-featured__title{font-size:2.2rem;font-weight:600}.post-featured:first-child>.post-featured__body .post-featured__meta{display:block}.post-featured:first-child>.post-featured__body .post-featured__meta a{text-transform:capitalize}.post-featured__ads{align-items:center;grid-column:1/4}.post-featured__ads img{display:block;margin:0 auto}.post-featured__body{padding-top:1em}.post-featured__title{font-weight:400}.post-featured__meta{display:none}}@media (min-width:56.25em){.post-featured__wrapper{grid-template-columns:repeat(4,1fr)}.post-featured:first-child{grid-column:1/4;display:flex}.post-featured:first-child>.post-featured__body,.post-featured:first-child>.post-featured__media{flex-basis:50%}.post-featured:first-child>.post-featured__body{padding:0 1em 0 1.5em}.post-featured:first-child>.post-featured__body .post-featured__tags{font-size:1.3rem}.post-featured:first-child>.post-featured__body .post-featured__title{font-size:2.6rem;font-weight:600}.post-featured:first-child>.post-featured__body .post-featured__meta{display:block}.post-featured:first-child>.post-featured__body .post-featured__meta a{text-transform:capitalize}.post-featured__ads{grid-column:4/5;grid-row:1/3}.post-featured__body{padding-top:1em}.post-featured__title{font-weight:400}.post-featured__meta{display:none}}.feed__wrapper{margin:0}.feed__title{margin-bottom:.5em}.feed__meta{display:flex;align-items:center;font-size:1.4rem;margin-bottom:.75em}.feed__avatar{width:30px;height:30px;border-radius:50%}.feed__author{text-transform:capitalize;padding:0 .75em}.feed__readmore{font-size:1.5rem}.feed__content p{margin-bottom:1em}@media (max-width:37.4375em){.feed__media img{width:100%;height:auto}.feed__body{padding-top:1em}.feed__tags{text-transform:uppercase;font-size:1.2rem;font-weight:700}.feed__link:active,.feed__link:hover{text-decoration:none}}@media (min-width:37.5em) and (max-width:56.1875em){.feed{display:flex;align-items:center;padding:.75em 0}.feed__media{flex-basis:30%;position:relative;padding-top:22.5%}.feed__media img{position:absolute;top:0;width:100%;height:100%}.feed__body{flex-basis:70%;padding-left:1em}.feed__tags{font-size:1.1rem;font-weight:700;text-transform:uppercase}.feed__link:hover,.feed__tags:hover{text-decoration:none}.feed__title{font-size:1.9rem}.feed__content p{font-size:1.5rem}}@media (min-width:56.25em){.feed{display:flex;align-items:center;padding:.75em 0}.feed__media{flex-basis:40%;position:relative;padding-top:30%}.feed__media .feed__image{position:absolute;top:0;width:100%;height:100%}.feed__body{flex-basis:60%;padding-left:1em}.feed__tags{font-size:1.3rem;font-weight:700;text-transform:uppercase}.feed__link:hover,.feed__tags:hover{text-decoration:none}}.authors{display:flex;justify-content:center;align-items:center}.authors .author__media{width:120px}.authors .author__media img{max-width:100%;height:auto;border-radius:50%}.authors .author__body{max-width:60%;padding-left:1em;text-align:left}.authors .author__title{margin-bottom:.5em}.pagination-wrapper{flex-basis:100%;position:relative;text-align:center;font-weight:300;padding-top:2em;margin-bottom:1em}.pagination{list-style:none;padding:0;margin:0}.pagination-item{display:inline-block;padding:0;margin:0}.pagination-link{padding:4px 10px;margin-right:2px;transition:all .2s ease-out}.pagination-link:hover{text-decoration:none;transition:all .2s ease-out}.pagination-next,.pagination-prev{padding:6px 12px}.pagination-next:hover,.pagination-prev:hover{text-decoration:none}.pagination-prev{float:left}.pagination-next{float:right}@media (max-width:37.4375em){.pagination-item{line-height:1.2em}.pagination-link{display:inline-block;font-size:1.4rem;margin-bottom:1em}}.breadcrumb{margin-bottom:1.5em;font-size:1.4rem;color:#5e5e5e;color:var(--secondary-text-color)}.breadcrumb a{color:#383838;color:var(--primary-text-color)}.breadcrumb a:hover{text-decoration:none;color:#ee464a;color:var(--hovered-link-color)}.breadcrumb i{display:inline-block}@media (max-width:37.4375em){.breadcrumb{font-size:1.3rem}}.post__single{margin:0}.post__title{font-size:3.2rem;margin-bottom:.5em}.post__meta{display:flex;justify-content:space-between;font-size:1.4rem}.post__meta-item{align-self:center}.post__meta-author{display:inline-block}.post__meta-author img{width:30px;height:30px;border-radius:50%}.post__author-link{text-transform:capitalize;padding-left:.75em;padding-right:.75em}.post__article .post__meta{margin-bottom:1em}.post__media{margin-bottom:1.5em}.post__caption{color:#5e5e5e;color:var(--secondary-text-color);font-size:1.2rem;padding:4px 6px}.post__caption,.post__caption:hover{text-decoration:none}.post__body .image--center{text-align:center}.post__body .image--center figcaption h4{font-family:Raleway,sans-serif;font-family:var(--font-body);font-size:1.2rem;text-align:center;padding-top:8px}@media (max-width:37.4375em){.post__title{font-size:1.9rem}}@media (min-width:56.25em){.share-button{padding-right:2em}}.post__last-updated{font-size:1.3rem;font-style:italic}.post__tag{list-style:none;padding:0;margin-left:0}.post__tag li{display:inline-block;font-size:1.4rem;background:#fafafa;background:var(--body-light-bg);padding:4px 8px;margin:0 6px 0 0}.post__tag li a{color:#5e5e5e;color:var(--secondary-text-color)}.post__tag li a:hover{text-decoration:none}.post__tag li:hover{background:#f5f5f5;background:var(--body-dark-bg)}.post__share{display:flex}.post__share .js-share{display:inline-block;width:32px;height:32px;line-height:32px;text-align:center;border-radius:50%;margin-right:8px}.post__share .js-share.facebook{background:#3b5999;background:var(--fb-color)}.post__share .js-share.twitter{background:#55acee;background:var(--tw-color)}.post__share .js-share.pinterest{background:#dd4b39;background:var(--gplus-color)}.post__share svg{width:14px;height:14px}.post__share .facebook svg,.post__share .pinterest svg,.post__share .twitter svg{fill:#fff;fill:var(--light-text-color)}.social-share__icon{display:inline-block;text-align:center;color:#fff;color:var(--light-text-color);width:32px;height:32px;line-height:32px;border-radius:50%;margin:0 3px}.social-share__icon:hover{color:#fff;color:var(--light-text-color);text-decoration:none}.social-share__icon.fb-icon{background:#3b5999;background:var(--fb-color)}.social-share__icon.tw-icon{background:#55acee;background:var(--tw-color)}.social-share__icon.wa-icon{background:#25d366;background:var(--wa-color)}.post__bio{align-items:center;display:flex;margin:calc(3.4rem + 1vw) 0 calc(3.4rem + 2vw)}.bio__avatar{border-radius:50%;flex-shrink:0;max-width:100%;height:auto}.bio__name{margin-bottom:.5em}.bio__name a,.bio__name a:hover{color:#383838;color:var(--primary-text-color)}.bio__name a:hover{text-decoration:none}.post__nav{display:flex;justify-content:space-between;width:100%;padding-top:1.5em;margin-bottom:2em}.post__nav-next,.post__nav-prev{align-items:center;display:flex}.post__nav-next:hover,.post__nav-prev:hover{text-decoration:none;color:#ee464a;color:var(--hovered-link-color)}.post__nav-next svg,.post__nav-prev svg{fill:#747577}.post__nav-link{color:#383838;color:var(--primary-text-color);font-family:Frank Ruhl Libre,serif;font-family:var(--font-heading);font-size:1.5rem;font-style:italic;line-height:1.5}.post__nav-link span{display:block;font-family:Raleway,sans-serif;font-family:var(--font-body);font-style:normal;color:#5e5e5e;color:var(--secondary-text-color)}.post__nav-link:hover{text-decoration:none;color:#ee464a;color:var(--hovered-link-color)}.post__nav-link[rel=prev]{padding-left:1em}.post__nav-link[rel=next]{padding-right:1em;text-align:right}@media (max-width:767.99px){.post__footer{flex-direction:column;padding:0 0 1.5em}.post__footer-tags{margin-bottom:1.5em}.social-profiles__icon:last-child{margin-right:0}}@media (min-width:56.25em){.bio__avatar{height:8rem;margin-right:2rem;width:8rem}}.related-posts{padding:1em 0}.related-posts__title{position:relative;font-size:2rem}.related-posts__title:after{content:"";position:absolute;width:56%;height:2px;right:0;top:14px;background:#e6e6e6;background:var(--border-color)}.related-post__media{background:#f5f5f5;background:var(--body-dark-bg)}.related-post__link{font-family:Frank Ruhl Libre,serif;font-family:var(--font-heading);font-size:1.5rem}.related-post__link:hover{text-decoration:none}.related-post__body{padding-top:1em}@media (max-width:37.4375em){.related-posts__title:after{display:none}.related-post__body{padding:1em 0}.related-post__title{font-size:1.5rem}}@media (min-width:37.5em) and (max-width:56.1875em){.related-posts__title:after{width:50%}.related-post__media{margin-bottom:1em}}.sidebar-widget{margin-bottom:1em}.widget-title{font-weight:700}.widget-product__title,.widget-title{font-size:1.8rem;text-transform:uppercase}.widget-product__title{font-weight:400}.widget__featured{display:flex;flex-wrap:wrap;margin-left:-2%;margin-right:-2%}.widget__featured-product{flex-basis:48%;padding-left:2%;padding-right:2%}.widget__featured-info{font-size:1.4rem;text-align:center;padding-top:1em}.widget__featured-info a{color:#383838;color:var(--primary-text-color)}.widget__featured-info a:hover{color:#ee464a;color:var(--hovered-link-color);text-decoration:none}.widget-product__cats{padding-right:1.2em}.widget-product__list{padding:0;margin:0;list-style:none}.widget-product__list-item{padding:6px 0;margin:0;border-bottom:2px solid #f5f5f5;border-bottom:2px solid var(--body-dark-bg)}.widget-product__link{color:#5e5e5e;color:var(--secondary-text-color)}.widget-product__link:hover{color:#ee464a;color:var(--hovered-link-color);text-decoration:none}.widget-product__recent-image{border:1px solid #e6e6e6;border:1px solid var(--border-color);float:left}.widget-product__recent-info{padding-left:80px}.widget-product__recent-link{color:#5e5e5e;color:var(--secondary-text-color)}.widget-product__recent-link:hover{color:#ee464a;color:var(--hovered-link-color);text-decoration:none}.widget-product__recent-title{font-size:1.6rem;font-weight:500;margin-bottom:.5em}.widget-post{display:flex;align-items:center;border-bottom:1px dashed #e6e6e6;border-bottom:1px dashed var(--border-color);padding:1em 0}.widget-post__media{flex-basis:30%;padding:.5em 0}.widget-post__body{flex-basis:70%;padding-left:1em}.widget-post__title-link{color:#5e5e5e;color:var(--secondary-text-color)}.widget-post__title-link:hover{text-decoration:none;color:#f05d61;color:var(--link-color)}.widget-post__title{font-size:1.5rem;padding:.5em 0;margin:0}.widget-post__meta{display:none}@media (max-width:37.4375em){.widget-post__title{font-size:1.4rem}}@media (min-width:37.5em) and (max-width:56.1875em){.widget-post__title{font-size:1.6rem;font-weight:500}.widget-post__meta{display:block}.widget-post__published{font-size:1.3rem;font-style:italic;color:#5e5e5e;color:var(--secondary-text-color)}}@media (min-width:56.25em){.widget-post{padding:0}}.widget-cats__items,.widget-tags__items{list-style:none;padding:0;margin:0}.widget-cats__item,.widget-tags__item{text-transform:capitalize;padding:.5em 0;margin:0;border-bottom:1px solid #e6e6e6;border-bottom:1px solid var(--border-color)}.widget-cats__item a,.widget-tags__item a{color:#5e5e5e;color:var(--secondary-text-color)}.widget-cats__item a:hover,.widget-tags__item a:hover{text-decoration:none;color:#f05d61;color:var(--link-color)}.widget-cloud__items{list-style:none;padding:0;margin:0}.widget-cloud__item{display:inline-block;padding:0;margin:0 .25em 1em}.cloud-link{font-size:1.3rem;text-transform:uppercase;color:#5e5e5e;color:var(--secondary-text-color);background:#f5f5f5;background:var(--body-dark-bg);padding:5px 10px;border-radius:5px}.cloud-link:hover{color:#383838;color:var(--primary-text-color);background:#fafafa;background:var(--body-light-bg);text-decoration:none}.footer-widget{padding-top:1.5em;margin-top:2.5em}.widget-footer{margin-bottom:1.5em}.widget-footer p{margin-bottom:.5em}.widget-footer__title,.widget-footer p{color:#d1d1d1;color:var(--lightgrey-text-color)}.widget-footer__title{font-size:1.7rem;font-weight:600;margin-bottom:1.5em}.widget-footer__list{list-style:none;margin-left:0;padding:0}.widget-footer__list-item{padding:0}.widget-footer__link{color:#d1d1d1;color:var(--lightgrey-text-color)}.widget-footer__link:hover{text-decoration:none;color:#f05d61;color:var(--link-color)}.widget-footer__cats-list{overflow-y:scroll;max-height:160px}#scrollbar::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}#scrollbar::-webkit-scrollbar,#scrollbar::-webkit-scrollbar-track{background-color:#21242d;background-color:var(--footer-bg);border-radius:20px}#scrollbar::-webkit-scrollbar{width:6px}#scrollbar::-webkit-scrollbar-thumb{background-color:#d1d1d1;background-color:var(--lightgrey-text-color);border-radius:20px}.social-icon{display:inline-block;text-align:center;width:36px;height:36px;line-height:36px;border-radius:50px;margin-right:8px;background:#5e5e5e;background:var(--secondary-text-color)}.social-icon,.social-icon:hover{color:#fff;color:var(--light-text-color)}.social-icon:hover{text-decoration:none}.social-icon__facebook:hover{background:#3b5999;background:var(--fb-color)}.social-icon__twitter:hover{background:#55acee;background:var(--tw-color)}.social-icon__gplus:hover{background:#dd4b39;background:var(--gplus-color)}.social-icon__instagram:hover{background:#3f729b;background:var(--ig-color)}.social-icon__telegram:hover{background:#55acee;background:var(--tw-color)}.banks-list{padding:0;margin:0}.banks-list li{display:inline-block;background:#fff;background:var(--main-bg);border-radius:4px;padding:0 8px;margin:0 6px 0 0}.menu-footer{list-style:none;padding:0;margin:0}.menu-footer__item{padding:0}.menu-footer__link{color:#d1d1d1;color:var(--lightgrey-text-color)}.menu-footer__link:hover{text-decoration:none;color:#f05d61;color:var(--link-color)}.footer-copyright{color:#d1d1d1;color:var(--lightgrey-text-color);text-align:center}.footer-credit{padding:1em 1.5em}.scroll-top{display:block;position:fixed;bottom:1em;text-align:center;width:32px;height:32px;line-height:32px;right:2em;background:#5e5e5e;background:var(--secondary-text-color);margin-left:2em;z-index:199}.scroll-top,.scroll-top:active{color:#d1d1d1;color:var(--lightgrey-text-color)}.scroll-top:hover{text-decoration:none;color:#fff;color:var(--light-text-color);background:#d1d1d1;background:var(--lightgrey-text-color)}@media (width >=992px) and (width <=1199.99px){.footer-widget{padding:3em 1.5em 1.5em}}@media (max-width:991.99px){.footer-widget{padding:3em 1.5em 1.5em}}.title,h1,h2,h3,h4,h5,h6{color:#383838;color:var(--primary-text-color)}.invert:active,.invert:focus,.invert:hover,.title:active,.title:focus,.title:hover,a{color:#f05d61;color:var(--link-color)}a:active,a:focus,a:hover{color:#ee464a;color:var(--hovered-link-color)}.invert{color:#5e5e5e;color:var(--secondary-text-color)}.header-bg,.submenu{background:#fff;background:var(--main-bg)}@media (min-width:56.25em){.submenu{background:#fff;background:var(--main-bg)}}.menu li a,.menu li a:visited{color:#383838;color:var(--primary-text-color)}.menu li a:active,.menu li a:hover{color:#ee464a;color:var(--hovered-link-color)}.submenu li a:hover{background:#fafafa;background:var(--body-light-bg)}.submenu li a,.submenu li a:visited{color:#383838;color:var(--primary-text-color)}.submenu li a:active,.submenu li a:hover{color:#ee464a;color:var(--hovered-link-color)}.footer-widget__bg{background:#21242d;background:var(--footer-bg)}.widget-footer__title{color:#5e5e5e;color:var(--widget-title)}.menu-footer__link,.widget-footer li,.widget-footer p,.widget-footer span{color:#868383;color:var(--widget-text)}.menu-footer__link:hover{color:#5e5e5e;color:var(--widget-text-hover)}.feed__link,.post-card__link{color:#383838;color:var(--primary-text-color)}.feed__link:hover,.post-card__link:hover{color:#ee464a;color:var(--hovered-link-color)}.pagination-link{color:#2e313a;color:var(--pagination-color);border:1px solid #2e313a;border:1px solid var(--pagination-color)}.related-post__link{color:#383838;color:var(--primary-text-color)}.related-post__link:hover{color:#ee464a;color:var(--hovered-link-color)}.pagination-item--current a,.pagination-link:active,.pagination-link:hover{color:#fff;background:#2e313a;background:var(--pagination-color)}.footer-copyright{color:var(--footer-text);background:#21242d;background:var(--footer-bg)}

Belajar HTML Lengkap: Cara Membuat Tabel pada Elemen HTML

Jika kamu berkunjung ke website yang mengulas tentang review produk, biasanya kamu akan menjumpai tabel harga dan spesifikasi produk tersebut.

Penggunaan tabel ini sangat bermanfaat untuk menampilkan data yang terstruktur sehingga mudah dipahami oleh para pembaca.

Misalnya untuk menampilkan daftar tipe smartphone, harga, dan spesifikasinya.

Pada tutorial ini, saya akan membahas cara membuat tabel pada halaman website dengan tag <table>.

Cara Membuat Tabel HTML dengan tag table, tr, dan td

Untuk membuat tabel pada halaman website, minimal kita membutuhkan 3 tag HTML. Yaitu tag <table>, <tr>, dan <td>.

  • Tag <table> digunakan untuk mendefinisikan tabel dua dimensi yang terdiri dari baris dan kolom sel yang berisi data.
  • Tag <tr> merupakan singkatan dari table row yang mewakili baris sel dalam tabel HTML.
  • Tag <td> merupakan singkatan dari table data, digunakan untuk menginput data ke tabel.

Penjelasan secara lengkap tentang tag tersebut bisa kamu pelajari di referensi tag table, tr, dan td.

Agar lebih mudah memahaminya, yuk amati contoh tabel HTML berikut:

<table border="11">
    <tr>
        <th>Judul Tabel 1</th>
        <th>Judul Tabel 2</th>
    </tr>
    <tr>
        <td>kolom 1</td>
        <td>kolom 2</td>
    </tr>
    <tr>
        <td>kolom 3</td>
        <td>kolom 4</td>
    </tr>
</table>

Dan ini tampilannya di web browser Chrome

contoh tabel

Perhatikan pada tag <table> di atas terdapat atribut border="1".

Atribut border ini digunakan untuk memberikan nilai garis tepi dari tabel.

Secara default, nilai border="1" ini menggunakan ukuran pixel. Sehingga web browser akan merender garis tepi pada tabel sebesar 1 pixel.

Kalau atribut border ini tidak disertakan pada tag <table>, maka tabel tidak memiliki garis tepi (border).

Membuat Garis Tepi dengan Atribut border pada Tabel

Pada contoh sebelumnya, saya menggunakan atribut border pada tag <table> untuk mengatur ketebalan garis tepi (border) dari tabel.

Jika atribut border ini dihilangkan, maka web browser akan menampilkan tabel tanpa garis tepi.

Nilai dari atribut ini berupa angka dengan satuan pixel.

Jadi, jika kamu memberi nilai border="8", secara otomatis web browser akan menampilkan garis tepi sebesar 8 pxel pada semua sisi tabel.

Agar lebih jelas perbedaanya, yuk amati contoh berikut:

<!DOCTYPE html>
<html lang="id">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Contoh Atribut Border pada Tabel</title>
    <link rel="stylesheet" href="">
</head>

<body>
    <table border="0">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
    </table>
    <br />

    <table border="1">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
    </table>
    <br />

    <table border="8">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
    </table>
    <script src=""></script>
</body>

</html>

atribut border pada tabel

Pada contoh tersebut, tabel pertama saya beri nilai 0 pada atribut border, sehingga tabel seolah-olah tidak memiliki garis tepi.

Membuat Garis Tepi dengan Property CSS border pada Tabel

Pada HTML5 memang tersedia atribut border yang bisa digunakan untuk membuat garis tepi pada tabel.

Namun untuk tujuan desain, sebaiknya gunakan CSS sebagai alternatif untuk memberi garis tepi pada tabel.

Untuk memberi garis tepi dengan CSS, masing-masing elemen table, th, dan td harus ditentukan nilai bordernya dengan property CSS border.

Contoh:

<style>
    table, th, td {
        border: 1px solid orange;
    }
</style>

Dan ini contoh tabel dengan garis tepi yang menggunakan CSS.

<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Contoh Border dengan CSS pada Tabel</title>
    <style>
        table,
        th,
        td {
            border: 1px solid orange;
        }

    </style>
</head>

<body>
    <table>
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
</body>

</html>

Dan ini tampilannya di browser Chrome:

Garis tepi pada tabel dengan CSS

Mengatur Jarak Kolom Tabel HTML dengan Atribut cellspacing

Atribut cellspacing digunakan untuk mengatur jarak antara garis tepi (border) bagian dalam dan luar tabel HTML.

Nilai dari atribut ini berupa angka dengan satuan pixel.

Jika kamu memberi nilai cellspacing="1", maka web browser akan menampilkan jarak sebesar 1 pixel diantara garis border tabel.

<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Penggunaan atribut cellspacing dalam Tabel</title>
</head>

<body>
    <table border="1" cellspacing="0">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
    <br />

    <table border="1" cellspacing="5">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
</body>

</html>

Dan ini tampilannya di browser Chrome:

Penggunaan atribut cellspacing dalam Tabel

Mengatur Jarak Kolom Tabel HTML dengan Property CSS border-collapse

Secara default, kolom tabel yang berdekatan akan memiliki batas yang berbeda. Sehingga tampilan garis tepi seolah-olah terlihat ganda (double border).

Untuk mengatur jarak antar kolom tabel ini, selain menggunakan atribut cellspacing seperti yang saya sebutkan di atas, kamu juga bisa menggunakan properti CSS border-collapse: collapse;

Dengan properti CSS ini, garis tepi atau border tabel akan terlihat menyatu.

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Contoh Border Collapse dengan CSS pada Tabel</title>
    <style>
        table {
            border-collapse: collapse;
        }

        th,
        td {
            border: 1px solid orange;
        }
    </style>
</head>

<body>
    <table>
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
</body>

</html>

Dan ini tampilannya di browser Chrome:

Garis tepi pada tabel dengan CSS border collapse

Cara Mengatur Padding Tabel dengan Atribut cellpadding

Atribut cellpadding digunakan untuk mengatur jarak dari border sisi dalam tabel dengan isi teks tabel itu sendiri.

Nilai dari atribut ini berupa angka dengan satuan pixel.

Jika kamu memberi nilai cellpadding="4”, maka web browser akan menampilkan jarak sebesar 4 pixel dari border sisi dalam tabel dengan isi teks tabel.

<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Penggunaan atribut cellpadding dalam Tabel</title>
</head>

<body>
    <table border="1" cellpadding="1">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
    <br />

    <table border="1" cellpadding="10">
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
</body>

</html>

Dan ini tampilannya di browser Chrome:

Penggunaan atribut cellpadding dalam Tabel

Cara Mengatur Padding Tabel dengan Property CSS padding

Selain menggunakan atribut cellpadding, kamu juga bisa menggunakan property CSS padding sebagai alternatif untuk mengatur padding kolom tabel HTML.

Misalnya, untuk mengatur padding kolom tabel menjadi 10 pixel, tambahkan property CSS padding: 10px; pada style sheet.

padding: 10px;
<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Penggunaan padding CSS dalam Tabel</title>
    <style>
        table {
            border-collapse: collapse;
        }

        th,
        td {
            border: 1px solid orange;
            padding: 10px;
        }

    </style>
</head>

<body>
    <table>
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td>Baris 1, Kolom 2</td>
            <td>Baris 1, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 2, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 1</td>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
        </tr>
    </table>
</body>

</html>

Dan ini tampilannya di browser Chrome:

Penggunaan properti padding dalam Tabel

Cara Menggabungkan Sel Tabel dengan Atribut rowspan dan colspan

Pada tampilan tabel yang komplek, biasanya dijumpai beberapa jumlah kolom atau baris sel tabel yang digabung menjadi satu.

Kalau kamu menggunakan aplikasi MS Exel atau Spreadsheets, bisa menggunakan menu merge cells untuk menggabungkan beberapa kolom tabel.

Nah untuk menggabungkan sel tabel pada HTML, kamu bisa menggunakan atribut rowspan dan colspan.

Fungsi Atribut rowspan dan colspan

Atribut rowspan digunakan untuk menentukan berapa banyak baris sel yang harus direntangkan.

Atribut colspan digunakan untuk menentukan berapa banyak kolom sel yang harus direntangkan.

Kedua atribut ini diletakkan pada tag td dalam sebuah tabel.

Agar lebih mudah memahaminya, yuk tulis ulang kode berikut ini dengan teks editor di laptopmu.

<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Penggunaan Atribut rowspan dan colspan dalam Tabel</title>
    <style>
        table {
            border-collapse: collapse;
        }

        th,
        td {
            border: 1px solid orange;
            padding: 10px;
        }

    </style>
</head>

<body>
    <table>
        <tr>
            <td>Baris 1, Kolom 1</td>
            <td colspan="3">Baris 1, Kolom 2, 3, & 4</td>
        </tr>
        <tr>
            <td rowspan="2">Baris 2 & 3, Kolom 1</td>
            <td>Baris 2, Kolom 2</td>
            <td>Baris 2, Kolom 3</td>
            <td>Baris 2, Kolom 4</td>
        </tr>
        <tr>
            <td>Baris 3, Kolom 2</td>
            <td>Baris 3, Kolom 3</td>
            <td>Baris 3, Kolom 4</td>
        </tr>
    </table>
</body>

</html>

Penggunaan atribut rowspan dan colspan dalam Tabel

Pada contoh di atas, tag td yang memiliki atribut colspan akan menyatukan kolom tabel yang ada disebelahnya.

Sedangkan tag td yang memiliki atribut rowspan akan menyatukan sel tabel dengan baris sel tabel lain yang ada di bawahnya.

Kedua atribut ini membutuhkan nilai (value) untuk menentukan banyaknya sel tabel yang akan digabungkan.

Misalnya tag td dengan atribut colspan="3" akan menggabungkan 3 kolom yang sejajar menjadi 1 sel tabel.

Dan tag td dengan atribut rowspan="2" akan menggabungkan 2 baris sel tabel menjadi 1 sel tabel.