Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the equivalent of border="1" in CSS for table?

I would like to use the CSS equivalent of border="1" through an equivalent stylesheet definition.

The border-width and border-style applies for the table but the cell borders which are given by border="1" are missing out.

like image 998
Deepak Kumar Vasudevan Avatar asked Aug 08 '12 18:08

Deepak Kumar Vasudevan


1 Answers

So this should be an easy answer but when you use CSS table and td its doesn't quite match border="1" 100% (But its very close)

enter image description here

My way uses this:

table { 
        border: 1px outset grey;
        padding: 1px 
  }

td { 
            border: thin inset grey;
            margin: 1;
    }
like image 165
Jtuck Avatar answered Sep 18 '22 04:09

Jtuck