AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

CSS Table


CSS Tutorial » CSS Table

Another way to create tables is by using CSS, improving the look and feel of the cursor in HTML

<table>
<tr>
<td> text</td>
</tr>
</table>


We can add CSS Table properties as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css
Note: Use external CSS instead.


How to create CSS Table - examples


You can try to execute the following code to change CSS table on this page.
If you like this, you can simply copy the code and paste it on your website.


Example:
Example 1, How to create CSS table - examples:
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
width: 100%;
border: 1px solid #333333;
}
th, td {
text-align: center;
padding: 16px;
}
th:first-child, td:first-child {
text-align: left;
}
tr:nth-child(even) {
background-color: #DDDDDD
}
.fa-check {
color: #33CC33;
font-weight: bold;
}
.fa-remove {
color: #FF2D2D;
font-weight: bold;
}

</style>
</head>
<body>
<h3 align="center">How to make CSS table</h3>
<p align="center">Change CSS table on this editor and execute code</p>

<table>
<tr>
<th style="width:50%">Features</th>
<th>Basic</th>
<th>Pro</th>
</tr>
<tr>
<td>Sample1 text1</td>
<td><i class="fa fa-remove">0</i></td>
<td><i class="fa fa-check">2</i></td>
</tr>
<tr>
<td>Sample2 text2</td>
<td><i class="fa fa-check">1</i></td>
<td><i class="fa fa-check">2</i></td>
</tr>
<tr>
<td>Sample3 text3</td>
<td><i class="fa fa-check">1</i></td>
<td><i class="fa fa-remove">0</i></td>
</tr>
<tr>
<td>Sample4 text4</td>
<td><i class="fa fa-remove">0</i></td>
<td><i class="fa fa-check">2</i></td>
</tr>
<tr>
<td>Sample5 text5</td>
<td><i class="fa fa-check">1</i></td>
<td><i class="fa fa-check">2</i></td>
</tr>
</table>

</body>
</html>



css table border, center, styling, column width, responsive, styles, class layout, generator, cellspacing
CSS Table - css tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.