×

Html & Html5

The World's best Software Development Study Portal

CSS Tables



As we have discussed the tables in HTML also but here the same table we are creating but by providing more styling to the tables by css.

Here some of the properties we are discussing below :-



Table borders



By using border property we can implement all the border properties like border-style, border-color border-size in our <table> , <th>, <tr> elements.



Let's understand this by the following example :-




Output of the Program



Firstname Lastname Age
Ranbir Kapoor 50
Ranveer Singh 94

So we get the borders in every cell of table.




Collapse Table borders



By using border-collapse property we can set all the table borders in a single border.



Let's understand this by the following example :-




Output of the Program



Firstname Lastname Age
Ranbir Kapoor 50
Ranveer Singh 94

So we get a single border line in the table.










CSS 3 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute