border in CSS

How to put a border in CSS?

There are multiple properties of border. Some of them are;

double:

this is double

dashed:

this is dashed

solid:

this is solid

groove:

this is groove

dotted:

this is dotted

outset:

this is outset

inset:

this is inset

ridge:

this is ridge

hidden:

this is hidden

none:

this is none

Example:

<html>
<head>
<style>
table
{
border-style: dotted;
}
</style>
</head>
<body>
<table border=”2″>
<tr><td>
<p>this is dotted</p>
</td></tr>
</table>
</body>
</html>

Output:

this is dotted

 

Fazal Rehman Shamil
Welcome to all friends. The reason for our success is only your love for T4Tutorials. Our team is always available to answer your queries regarding any kind of confusions or discussion regarding your study and career matters. For discussion with us please join our facebook group "T4Tutorials.com". The link of the group is mentioned below. Thanks and love to all for connecting with us. We are nothing without you. Love you all.....
https://web.facebook.com/groups/2066136233601097/

Leave a Reply