Representing Basic Math and Calculus with HTML & CSS – MathCSS

Category: CSS & CSS3 | November 14, 2015
Author:mathexl
Views Total:690 views
Official Page:Go to website
Last Update:November 14, 2015
License:MIT

Preview:

Representing Basic Math and Calculus with HTML & CSS – MathCSS

Description:

MathCSS provides a verbose, responsive, and easy way to represent basic math and calculus by a few lines of HTML without the need for a heavier JavaScript library. Built exclusively in CSS using a block-chain technique. Read the full documentation here.

Basic usage:

Download MathCSS and include math.css on the webpage.

<link href="math.css" rel="stylesheet">

The sample Html to represent math and calculus.

<div equation>
    <div integral>
        <div upperbound>
            5x<sup>2</sup> + 98
        </div>
        <div lowerbound>
            39x
        </div>
        <div of>
            35x + 45
        </div>
    </div>
    
    <hr add>
    
    <div contourintegral>
        <div upperbound>
            5x<sup>2</sup>
        </div>
        <div lowerbound>
            39x
        </div>
        <div of>
            35x + 45
        </div>
    </div>
    
    <hr add>
    
    <div surfaceintegral>
        <div upperbound>
            <hr infiniti>
        </div>
        <div lowerbound>
            2<hr pi> + 6
        </div>
        <div of>
            35x + 45<hr pi>
        </div>
    </div>
    
    <hr add>
    
    <div partial derivative>
        <div top>
            x 
        </div>
        <div bottom>
            y
        </div>
    </div>
    
    <div term>
        4x+3
    </div>
    
    <hr add>
    <div volumeintegral>
        <div upperbound>
            5x<sup>2</sup>
        </div>
        <div lowerbound>
            39x
        </div>
        <div of>
            35x + 45
        </div>
    </div>
    
    <hr add>
    
   <div doubleintegral>
        <div upperbound>
            5y
        </div>
        <div lowerbound>
            3y
        </div>
        <div of>
            35y<sup>78</sup> + 45
        </div>
    </div>
    
    <hr multiply>
    
    <div tripleintegral>
        <div upperbound>
            5x
        </div>
        <div lowerbound>
            39x
        </div>
        <div of>
            35x + 45
        </div>
    </div>
    
    <hr subtract>
    
    <div summation>
        <div upperbound>
            5x
        </div>
        <div lowerbound>
            39x
        </div>
        <div of>
            35x + 45
        </div>
    </div>
    
    <hr divide>
    
    <div product>
        <div upperbound>
            5x
        </div>
        <div lowerbound>
            39x
        </div>
        <div of>
            35x + 45
        </div>
    </div>
    
    <hr add>
    
    <div partial derivative>
        <div top>
            x 
        </div>
        <div bottom>
            y
        </div>
    </div>
    <div term>
        35x + 45
    </div>
    
    <div add></div>
    
    <div fraction>
        <div top>
            12x 
        </div>
        <div bottom>
            39x
        </div>
    </div>
    
    <div add></div>
    <div  derivative>
        <div top>
            dx 
        </div>
        <div bottom>
            dy
        </div>
    </div>
    
    <div term>
        (35x + 45)
    </div>
    
    <hr add>
    
    <div  derivative>
        <div top>
            d 
        </div>
        <div bottom>
            dy
        </div>
    </div>
    
    <div term>
        (35x + 45)
    </div>
    
    <hr add>
    
    <div limit>
        <div variable>
            x
        </div>
        <div goingto>
            <hr infiniti>
        </div>
        <div of>
            35x<sup>2</sup> + 12x + 9
        </div>
    </div>
</div>

You Might Be Interested In:


Leave a Reply