DEV Community

jitubhaiya
jitubhaiya

Posted on • Originally published at pkdeveloper.in

how to make age calculator with html

Add bookmark

1

Here are the features I try to incorporate into the age calculator.what does age calculator ?
Age calculator age calculator

  1. You can estimate the age of your child in terms of days
  2. age calculator calculates age in seconds.
  3. age calculatorhttps://pkdeveloper.in/age-calculator/ calulates age in minutes.
  4. The 4 age calculator calculates the age in months.
  5. age calculatorcalculates in years, Exact Age Calculator Birth Date*: Calculate your age** Age

    * The year here is 365 days and the month here is 30 days, that means your birthday may not mean you will be 0 days old. **Don't worry I will not share your input.

    main_container {

    width: 400px;
    margin: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    font-family: sans-serif;
    border-radius: 20px;
    border: 3px solid #999;
    }

    birth_date_input, #age_container {

    text-align: center;
    margin: 20px;
    margin-left: auto;
    margin-right: auto;
    }

    age_container {

    margin: 40px 5px;
    padding: 20px;
    border-radius: 50px;
    border: 1px solid #000;
    font-weight: bolder;
    background: #EEE;
    font-size: 20px;
    line-height: 40px;
    }

    calculate {

    cursor: pointer;
    text-align: center;
    width: 200px;
    padding: 5px;
    margin: 10px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #999;
    border-radius: 10px;
    background: #FFD119;
    background: -webkit-gradient(linear, left top, left bottom, from(#FFD119), to(#E6B800));
    background: -moz-linear-gradient(top, #FFD119, #E6B800);
    font-weight: bold;
    height: 28px;
    box-shadow: 0 -8px inset;
    }

    calculate:hover {

    background: -webkit-gradient(linear, left top, left bottom, from(#E6B800), to(#FFD119));
    background: -moz-linear-gradient(top, #E6B800, #FFD119);
    margin-top: 13px;
    height: 25px;
    box-shadow: 0 -5px inset;
    }

    calculate:active {

    background: #403300;
    padding-top: 10px;
    height: 20px;
    box-shadow: 0 5px #000 inset;
    }

    age {

    padding: 5px;
    border: 3px dashed #AAA;
    background-color: green;
    }
    html{
    background:rgb(100, 100, 1000);
    }
    Why we need age calculator ?
    Let's first learn about what is the age calculator, age calculator is a term that has multiple meanings. Different people use age calculator differnetly. Some call the age calculator, Some calls birth calculator,Some uses the term date of birth calculator, Some calls dob calculator, while others call date of birth calculation.

Discussion (0)