@charset "utf-8";
/* CSS Document */
/* Get rid of default padding and margin */
body {
background-size: 1000px 200px;
background-position: center;
background-repeat: no-repeat;
background-color: #125a08;
margin: 0px;
padding: 5px;
list-style-type: none;
font-family: Arial, Helvetica, sans-serif;
}
span.tab {
padding: 0 30px;
/* Or desired space*/
}
.total {
padding-top: 2px;
}
.input-symbol-dollar {
position: relative;
font-size: 15px;
}
.input-symbol-dollar input {
padding-left: 14px;
}
.input-symbol-dollar:before {
position: absolute;
top: 0;
content: "$";
left: 5px;
}
/*centering website*/
.container {
margin: 0px auto;
border-radius: 25px;
background: #4faa12;
padding: 20px;
width: 600px;
height: 550px;
}
h1 {
margin-top: 0;
/* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
margin-bottom: 25px;
padding-right: 15px;
padding-left: 15px;
/* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
font-size: 80px;
font-family: Vivaldi;
text-align: center;
text-shadow: 3px 2px grey;
}
p {
margin-top: 0;
/* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 0px;
/* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}
JavaScript
function estimate(item) {
var but = 0;
$('input:checked').each(function() {
but += parseFloat($(this).val()) // radio button
});
var length = parseFloat($('#length').val()); // textbox
var Totalcost = length * but;
$('#Totalcost').val(Totalcost.toFixed(2));
}
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.