Skip to main content

Styles Table with awesome Hover effect using HTML And CSS : Source Code

 

Tutorial 8

Styles Table with awesome Hover effect using HTML And CSS || Web Tutorials : Source Code

  Hey Guys , Welcome To My Blog :-  Web Tutorials || Yuvan Art

Full Process To Create Styles Table :- Click On The Below Link To Watch Full Process To Make Styles Table Using HTML And CSS.


Part ( 1 ) HTML Code :- 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Styling Table</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <h2>12th Examination Result</h2>
    <table>
        <tr id="head">
            <th>Subjects</th>
            <th>Theory</th>
            <th>Practical</th>
            <th>Total Marks</th>
            <th>Grades</th>
        </tr>
        <tr>
            <th class="head">English</th>
            <td>82</td>
            <td>-</td>
            <td>82</td>
            <td>A</td>
        </tr>
        <tr>
            <th class="head">Hindi</th>
            <td>85</td>
            <td>-</td>
            <td>85</td>
            <td>A</td>
        </tr>
        <tr>
            <th class="head">Maths</th>
            <td>77</td>
            <td>-</td>
            <td>77</td>
            <td>A</td>
        </tr>
        <tr>
            <th class="head">Chemistry</th>
            <td>31</td>
            <td>30</td>
            <td>61</td>
            <td>B</td>
        </tr>
        <tr>
            <th class="head">physics</th>
            <td>63</td>
            <td>30</td>
            <td>93</td>
            <td>A</td>
        </tr>
        <tr>
            <th class="head">Grand Total</th>
            <td>338</td>
            <td>60</td>
            <td>398</td>
            <td>A</td>
        </tr>
        <tr id="last">
            <th colspan="2">Percentages = 79.6%</th>
            <th>---</th>
            <th colspan="2">Result : Passed In First Division</th>
        </tr>
    </table>
</body>

</html>

Part ( 2 ) CSS Code :- 

body{
    padding0;
    margin0;
}
table{
    left50%;
    top50%;
    transformtranslate(-50%-50%);
    positionabsolute;
    text-aligncenter;
    font-familyVerdana, Geneva, Tahomasans-serif;
    border-collapsecollapse;
    width800px;
    height200px;
    border1px solid #bdc3c7;
    box-shadow2px 2px 12px rgba(0000.2), -1px -1px 8px rgba(0000.2);
}
tr{
    transition: a .2s ease-in;
    cursorpointer;
}
thtd{
    padding12px;
    text-alignleft;
    border-bottom1px solid #ddd;
}
#head#last{
    background-color#16a085;
    color#fff;
}
h2{
    font-weight600;
    text-aligncenter;
    background-color#16a085;
    color#fff;
    padding10px 0px;
}
tr:hover{
    background-color#f5f5f5;
    transformscale(1.02);
    box-shadow2px 2px 12px rgba(0000.2), -1px -1px 8px rgba(0000.2);   
}
@media only screen and (max-width878px) {
    table{
        width90%;
    }
}


Thank You !!!

Visit More Tutorials :- 








Comments

Popular posts from this blog

How to make Calculator using HTML And CSS : Source Code

Tutorial 6 How to make Calculator using HTML And CSS || Web Tutorials : Source Code   Hey Guys , Welcome To My Blog :-   Web Tutorials || Yuvan Art Full Process To Create Styles Calculator :-  Click On The Below Link To Watch Full Process To Make Calculator Using HTML And CSS. How to make Calculator using HTML And CSS || Web Tutorials Part ( 1 ) HTML Code :-  <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > CALCULATOR </ title >      < link   rel = "stylesheet"   href = "style.css" > </ head > < body >      < div   alig...

How to Create Login Form in HTML and CSS : Source Code

Tutorial 5 How to Create Login Form in HTML and CSS || Make Styles Login Form || Web Tutorials : Source Code   Hey Guys , Welcome To My Blog :-   Web Tutorials || Yuvan Art Full Process To Create Styles Login Form :- Click On The Below Link To Watch Full Process To Create Styles Login Form Using HTML And CSS. How to Create Login Form in HTML and CSS || Make Styles Login Form || Web Tutorials Part ( 1 ) HTML Code :-  <!-- Styles Login Form - HTML Part --> <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > Login Form </ title >      < link ...