+ 2
Code issue
I don't know why the wise button won't go blue like I coded it to do can anyone help? (There is the link to the code) https://sololearn.com/compiler-playground/WL2iKcPOnZus/?ref=app
17 odpowiedzi
+ 3
No need for separate <style> for each and every CSS rule.
<style> needs to go inside the <html> -- not after it! One usually puts it in the <head>
Mind the spelling: "American" color instead of "British" colour
All the buttons need to go inside the <body> -- not outside the <html>!
https://sololearn.com/compiler-playground/WFg3LDDVD0c6/?ref=app
+ 2
Brian O'Connell
The issue is with the spelling you wrote, just replace `background-colour` to `background-color` and `colour` to `color`.
Also your code isn't in a proper way as you are trying to create everything outside the html tag.
0
Thanks Gulshan Mahawar and Lisa
0
Also how do you push the buttons into the middle of the output
0
do you want to center them horizontally or vertically?
0
Horizontal please
0
For the beginning, the text-align attribute could be sufficient? Applied on the body and set to center, it should work.
0
In what code css is or HTML?
0
In CSS, add a style rule for body
0
Ok
0
I know I have asked alot but can you write it please i would love that?
0
body {
text-align: ...;
}
Fill in the ... and add it to your CSS. You can place it in the beginning of your <style></style>
0
the <center> tag seems to work. However, it is not recommended as it is deprecated.
My suggestion was to apply a CSS rule to the body tag.
0
Well thanks
0
I'll be in touch if I need any more help