click below
click below
Normal Size Small Size show me how
css week 2
Question | Answer |
---|---|
How many types of list are there ? | Two (2) |
li | List item |
ul | Unordered List |
ol | Ordered List |
table{border: 2px solid black;} | Add this border to the table |
td{border: 2px solid black;} | Add this border to the cells |
td {padding:20px;} | Create padding between the cells |
table{height: 500px; width:800px;} | Specify the height and the width of the table |
th {text-align: center;} | Align center the header of the table |
td,th{vertical-align: top;} | Align Vertical-top the header and the cells of the table. |
tr:hover{background-color:green} | If you hover over the row, it will get green background color |
th, td{padding: 50px;} | Cerate padding between the cells and the header of the table |
th {background-color: green;} | Table Header Background |
div style="overflow-x: auto;" | If the screen is too small, an horizontal scroll bar is appeared |