visitor activity monitorvisitor activity monitor

PROJECT CODE

                                            The Developers Choice!!!!
                                                                                                            Home | About Us | Contact Us

CSS TUTORIALS

Tables:

What is Table Borders
To specify table borders in CSS, use the border property.
How to implement Table Border
The example below specifies a black border for table, th, and td elements:
Example
table, th, td {
border: 2px solid green;
}
What is Collapse Borders
The border-collapse property sets whether the table borders are collapsed into a single border or separated:
How to implement Collapse Borders
Example
table {
border-collapse: collapse;
}
table, th, td {
border: 2px solid green;
}
How to set Table Width and Height
Width and height of a table is defined by the width and height properties.
The example below sets the width of the table to 100%, and the height of the th elements to 50px
: Example
table {
width: 100%;
}
th {
height: 50px;
}
   
What is Table Text Alignment
The text in a table is aligned with the text-align and vertical-align properties.
The text-align property sets the horizontal alignment, like left, right, or center:
Example td {
text-align: right;
}
The vertical-align property sets the vertical alignment, like top, bottom, or middle:
How to implement Table Text Alignment
Example
td {
height: 50px;
vertical-align: top;
}
What is Table Padding
To control the space between the border and content in a table, use the padding property on td and th elements:
How to implement Table Padding
Example
td {
padding: 10px;
}
What is Table Color
Table color specifies the color of the borders, and the text and background color of th elements:
How to implement Table Color
Example
table, td, th {
border: 1px solid green;
}
th {
background-color: green;
color: red;
}
All Rights Reserved with Project code