programplug Logo




CSS Table

When you make an html table without using an styles or an attributes to display them without any border.But with the help of CSS tables you can improve its quality of its appearance.
The following CSS properties that are widely use in designing the table are as:

A. Border-collapse
The border property helps to collapse all borders in one border
Example:

<style>   
table, th, td 
{  
border: 8px solid grey;  
border-collapse: collapse;  
}  
</style> 
 

b. CSS Table Border
The css table layout property defines the algorithm to be used to make the table cells,rows and coloumns.There are two table algorithm layout are functioing. auto algorithm that is fixed because it depends on the width of the cell content and fixed algorithm that have fixed table layout & its only depends on the width which have columns,cell spacing and borders.
Example:

table 
{
width:400px;
table-layout: auto;
}
  

C. CSS Table Border
we can create a border for the table, th and td tags using the property of css table.

Example:

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

D. CSS width and height in table
It is defined by its name width and height of its properties.

Example:

<style> 
table
{
width: 80%;
}

th 
{
height: 80px;
}
</style> 
 






Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training
SCO,SMO

Contact Us

Dehradun Uttarakhand India
www.programplug.com
info@programplug.com
08534019974
Designed By : Mridul Gupta

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy