Add border in table CSS example 2016-07-01 05:57

In this page I will show you how to add border CSS in table. It is better add border in table before adjusting width and height. Example is here

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Add border in table css</title>
<style type="text/css">
    table {
        border-collapse: collapse;

    table td, th, tr {
        border: 1px solid red;

Don't recommend use table if you want show large content. table won't show until the content loading complete. Another disadvantage is change width or height will affect other rows.