CSS how to: tables

submitted by uklmhb on 09/30/16 1

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 www.technoblogical.com/web-design/ Providing training since last Tuesday www.technoblogical.com Thanks for watching!

Leave a comment

Be the first to comment

Collections with this video
Email
Message
×
Embed video on a website or blog
Width
px
Height
px
×
Join Huzzaz
Start collecting all your favorite videos
×
Log in
Join Huzzaz

facebook login
×
Retrieve username and password
Name
Enter your email address to retrieve your username and password
(Check your spam folder if you don't find it in your inbox)

×