TablesTutorials

how to create a Slick Tables

how to create a Slick Tables

how to create a Slick Tables

Before We Start

Every developers need, clean and modern elements to develop their websites, It contain pictures and a user interface element within a website. The most important one and the first section that the user sees when he/she enters a website. how to create a Slick Tables

So if you are a person who wishes to develop a website, you have to know how to create that properly.

how to create a Slick Tables

Download Udemy paid courses FREE

We are here to solve your problem. In this article we discuss how to create this elements. Before we start please read the below articles which easier you to understand the process, if you are new to development.

Step 1 – Add HTML

It’s too easy and simple. Just copy and paste below code in your HTML editor between <body> </body> tag.

<table>
  <thead>
    <tr>
      <th>ID
      <th>First Name
      <th>Last Name
      <th>Goes By
      <th>Gender
      <th>Class
      <th>Alive
  </thead>
  <tbody>
    <tr>
      <td>1
      <td>Malcolm
      <td>Reynolds
      <td>Mal, Cap'n
      <td>M
      <td>Captain
      <td>Yes
    <tr>
      <td>2
      <td>Zoe
      <td>Washburn
      <td>Zoe
      <td>F
      <td>First Mate
      <td>Yes
    <tr class="disabled">
      <td>3
      <td>Hoban
      <td>Washburn
      <td>Wash
      <td>M
      <td>Pilot
      <td>No
    <tr>
      <td>4
      <td>Kaylee
      <td>Frye
      <td>Kaylee
      <td>F
      <td>Mechanic
      <td>Yes
    <tr>
      <td>5
      <td>Jayne
      <td>Cobb
      <td>Jayne
      <td>M
      <td>Muscle
      <td>Yes
    <tr class="disabled">
      <td>6
      <td>[unknown]
      <td>Book
      <td>Shepherd
      <td>M
      <td>Passenger
      <td>No
    <tr>
      <td>7
      <td>Simon
      <td>Tam
      <td>Simon
      <td>M
      <td>Passenger
      <td>Yes
    <tr>
      <td>8
      <td>River
      <td>Tam
      <td>River
      <td>F
      <td>Passenger
      <td>Yes
  </tbody>
</table>

Step 2 – Add CSS

Download Udemy paid courses FREE

Copy and paste below code in your HTML editor between <style></style> tag.

<style>
@import url(https://fonts.googleapis.com/css?family=Open + Sans:400, 600);

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #105469;
  font-family: "Open Sans", sans-serif;
}
table {
  background: #012b39;
  border-radius: 0.25em;
  border-collapse: collapse;
  margin: 1em;
}
th {
  border-bottom: 1px solid #364043;
  color: #e2b842;
  font-size: 0.85em;
  font-weight: 600;
  padding: 0.5em 1em;
  text-align: left;
}
td {
  color: #fff;
  font-weight: 400;
  padding: 0.65em 1em;
}
.disabled td {
  color: #4f5f64;
}
tbody tr {
  transition: background 0.25s ease;
}
tbody tr:hover {
  background: #014055;
}

</style>

At the end we will have something like this. You can change fonts, colors, backgrounds and all things that you want.Enjoy it.

how to create a Slick Tables

Video Tutorial

Please watch this video to better understand this tutorial and don’t forget to subscribe to our channel.

Download Udemy paid courses FREE


Help others to find out about this article on Social Media sites. If you have any doubt or any problem, don’t hesitate to contact us. Thereafter we will be able to help you and also make sure you bookmark our site on your browser.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button