Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

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 Click Here to Know More
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325
Dear Professors and Resarchers!You are welome to Cite these tutorials in your research or slides etc. Please don't forget to mention the reference of website. Copy Paste of text is strcitly forbidden. Images can be reuse because images are protected with watermark.

Leave a Reply

Your email address will not be published. Required fields are marked *