A basic calculator built with HTML, CSS, and JavaScript
This is a basic calculator, as you can see it appears like a calculator placed on a surface.
The entire design was achieved using HTML, CSS, BOOTSTRAP and JavaScript( JQuery).
I will explain each section of the design and what css, bootstrap or JavaScript properties were used to achieve them.
The calculator box
The full calculator body was centralized using the bootstrap class called text-center, if you have a div inside a bigger div and you want to centralize the inner div all you need is to call the bootstrap class in the bigger div and it's content will automatically be centralized as shown below.
<div class="container text-center">
</div>
With this whatever you place inside this div will automatically be centralized assuming you've added bootstrap in your project.
The box shadow and little curve by the edges.
The shadow was achieved using the css property box-shadow and the curve was also achieved using the css property border-radius. while using the box-shadow you need to put into consideration the browsers compatibility, below is how i applied it considering various browsers;
border-radius:5%;
-moz-box-shadow: 7px 10px 34px 1px rgba(0, 0, 0, 0.68), inset -1px -6px 12px 0.1px #89847e;
-webkit-box-shadow: 7px 10px 34px 1px rgba(0, 0, 0, 0.68), inset -1px -6px 12px 0.1px #89847e;
box-shadow: 7px 10px 34px 1px rgba(0, 0, 0, 0.68), inset 1px -1px 12px 0.1px #89847e;
The heading
The appearance of the heading at the top is an html font family applied to it, here is how this was applied
font-family: 'Brush Script MT', cursive;
The input box
The input box has been made to appear like a real calculator screen using, using css properties as, background-color, width, height, margin and font-size.
The buttons
The look of the buttons were also achieved using similar properties as the ones used for the calculator box, such as the box-shadow, border-radius and others.
Functionality
The entire calculator functionality with the mathematical operations was built using the JavaScript framework called JQuery.
You can view the full calculator demo on my Codepen profile here JavaScript Calculator.
You can also study the code from my git hub
Thank you and stay tuned for more.
Hello! It's nice to see you here!
thanks,nice to meet you too
Gracias por unirte a Steemit donde podrás compartir conmigo y con muchas personas más.
thanks for the warm welcome
Your blog has received an upvote from the communal account of Steemph.antipolo for being an active discord member and as an active community member. Keep up the good work and best of regards. Keep on Steeming!
You can get a support by joining our discord channel and gain votes from
our curators. Join our discord now
https://discord.gg/7w3hJqw
If you would like to support steemph.antipolo project you can help by delegating your spare SP to us, just click the link below.
50 SP 100 SP 200 SP 300 SP 400 SP 500 SP 1000 SP
Please don't use the tag utopian unless you are to contribute in the platform.
Nice UI!
Posted using Partiko Android
thanks
your post is helpfull for people
thank you
Welcome to Steem, @mrobele!
I am a bot coded by the SteemPlus team to help you make the best of your experience on the Steem Blockchain!
SteemPlus is a Chrome, Opera and Firefox extension that adds tons of features on Steemit.
It helps you see the real value of your account, who mentionned you, the value of the votes received, a filtered and sorted feed and much more! All of this in a fast and secure way.
To see why 2593 Steemians use SteemPlus, install our extension, read the documentation or the latest release : SteemPlus on Fundition.
thanks, already installed
Welcome to Steemit mrobele. Let me know if you got any questions about Steem or anything related to it! The official FAQ can be found here and has A LOT of information https://steemit.com/faq.html - Also remember, Steemit is just ONE of the sites built that uses Steem the blockchain. We also have DTube - our very own Youtube, DSound for Soundcloud and Steepshot if you prefer Instagram like experience. I'd also like to mention ChainBB - forums, Busy - Steemit with more modern look basically, DMania for memes and Dlive for streaming just like in Twitch! You can also earn Steem by gaming now! Search for Steemgar if that's more your thing. Welcome to the blockchain! :)
thank you
@mrobele, A warm welcome to Steemit. This is a great community and I know you will have a great time here.
I want to invite you to join the discord channel #steemschools https://discord.gg/eTZqQvk and we will teach and support you to grow up in Steemit, to choose the right topic to attract readers, to use the right tags to get more visibility, how to make quality posts and comments on Steemit.
Welcome! It is so nice to have you here with us. If you have any questions just post them here and I will try help if I can. Good luck!
Thank you for the warm welcome
You're very welcome. Always glad to help out if I can.
Congratulations @mrobele! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes received
Click on any badge to view your own Board of Honor on SteemitBoard.
To support your work, I also upvoted your post!
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP