/    Sign up×
Community /Pin to ProfileBookmark

Please advise whats wrong

Why the button is not showing any color or font change ? Also how can i move the button a little bit down ?
Thank You

[code]

<! Doctype html>
<html>
<head>

<title> Lab3 </title>
<style>
h2{
background-color: lightgrey;
width: 500px;
border: 15px solid green;
padding: 25px;
margin: 15px;
text-align: center;
text-transform: uppercase;
color: #4CAF50;

}
.button input {
background-color: blue;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 32px;
margin: 4px 2px;
cursor: pointer;
}
</style>

<h2> Coin value Calculator </h2>

</head>
<body>
<input type=”button” class = “button” value=”Find Denomination of coins” onClick =”minCoins()”></button>

</body>

</html>

[/code]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@rootOct 18.2017 — Firstly, its [B]<!DOCTYPE html>[/B] and not [B]<! Doctype html>[/B], you have the wrong type case and introduced a space in the tag. Older browsers understand <!DOCTYPE so the interuption to browsers entering a quirks mode or nonstandard rendering of the site, even for HTML5 the tag is the uppercase type of tag.

Try:input[type=button] {
background-color: blue;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 32px;
margin: 4px 2px;
cursor: pointer;
}
Copy linkTweet thisAlerts:
@reejarejinauthorOct 18.2017 — Thank You !

is it possible to alert 2 or more outputs in 1 window. I want to show the whole outputs in 1 window

alert("<br>The value entered: " +value);

alert("<br>No of 16 used: " +sixteen);

alert("<br>No of 8 used: " +eight);

alert("<br>No of 4 used: " +four);

alert("<br>No of 2 used: " +two);

alert("<br>No of 1 used: " +one);
Copy linkTweet thisAlerts:
@rootOct 18.2017 — I suggest that you post the code you have in the JavaScript forum, then your question can be answered.
Copy linkTweet thisAlerts:
@JMRKEROct 18.2017 — Thank You !

is it possible to alert 2 or more outputs in 1 window. I want to show the whole outputs in 1 window

alert("<br>The value entered: " +value);

alert("<br>No of 16 used: " +sixteen);

alert("<br>No of 8 used: " +eight);

alert("<br>No of 4 used: " +four);

alert("<br>No of 2 used: " +two);

alert("<br>No of 1 used: " +one);[/QUOTE]


The <br> tag will not display correctly in an alert. I would suggest writing to a tagged element using .innerHTML or dynamically create the output display element.


However, if you must use the alert.
<i>
</i>var str = '';
str += "nThe value entered: " +value;
str += "nNo of 16 used: " +sixteen;
str += "nNo of 8 used: " +eight;
str += "nNo of 4 used: " +four;
str += "nNo of 2 used: " +two;
str += "nNo of 1 used: " +one;
alert(str);
×

Success!

Help @reejarejin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...