HomeНаука и техникаRelated VideosMore From: Chris Walker

CSS how to: tables

29 ratings | 7879 views
CSS can be used on tables to do a great many things. You shouldn't store in tables what you wouldn't store in a spreadsheet program like Microsoft Office Excel. We used to use tables for styling elements. Now that we have CSS, you should use it to position items on a page. CSS properties used border: used to change the border background: used to determine a background color for both tables and cells border-spacing: spacing between table border and cells border-collapse: remove the table border caption-side: display captions on top or bottom text-align: left, right, center, or justify text width: decide how wide things should be. Great with height! empty-cells: Do you want to hide empty cells? table-layout: changes the way the table appears first-of-type: choose the first of an HTML element in a group last-of-type: Choose the last one in a group first-child: Must be a child of HTML elements and first of its kind last-child: Must be a child of HTML elements and last of its kind nth-child(): choose an element in a group by counting them nth-last-child(): Same thing, but count from the end http://www.technoblogical.com/web-design/ Providing training since last Tuesday http://www.technoblogical.com Thanks for watching!
Html code for embedding videos on your blog
Text Comments (2)
Thanks for this video Education
You never know. (4 years ago)
By table tr td you probably meant to style tbody, which you didn't include.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.