In this tutorial, we’ll create a beautiful HTML table with td background style (CSS). Design a table, it can using for a lot of purpose, such as table price, table lesson and more. It is seem table hosting price that you can see detail in tutorial and demo link bellow:

html td background demo screenDemo Download

This article is about the proper th and td of tables, for tabular data. How you can implement them with accessibility in mind and how to make them appealing for the eye using CSS.

The Cascading Style Sheets (CSS)

The table css will have the following code:

tr th{
	font-weight:bold;
    }
tr th, tr td{
	padding:5px;
}
th{
    border: 5px solid #C1DAD7;
}
td{
	border: 5px solid #C1DAD7;
}
.c1{
	background:#4b8c74;
}
.c2{
	background:#74c476;
}
.c3{
	background:#a4e56d;
}
.c4{
	background:#cffc83;
}

Now! We  have a HTML table with td Background style. Check out the demo below, and feel free to download this example for future use.  I hope you enjoyed this tutorial and find it useful!

Tags:

Updated:

Share
Graham Bill

Written by

Graham Bill

Graham Bill is a seasoned web designer with a specialization in WordPress sites and blogs, boasting over a decade of experience in the field. His extensive knowledge of the web design industry and familiarity with the latest trends in WordPress development set him apart as an expert. Through his blog, Graham shares valuable tips and tricks that serve as a great resource for anyone looking to enhance their web design skills or optimize their WordPress sites. His commitment to offering insightful articles reflects his dedication to enriching the web design community with practical advice and expertise.

View all posts →

One comment on “HTML td Background with CSS Tutorial

  1. Mehrshad Darzi

    It was a beginner’s tutorial
    I was at your site

    But thanks again

Leave a Comment