I am trying to make a body background as a linear-gradient, but it doesn't work. However, when i am setting a solid color it's ok (e. g. background: red;) Here is some code:
* {
margin: 0;
padding: 0;
}
body {
width: 100%;
height: 100%;
/* background: red;*/
background: linear-gradient(#648880, #293f50);
margin: auto;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
#chatbox {
background: DarkKhaki;
padding: 10px;
width: 400px;
height: 200px;
margin: auto;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
#user_msg {
font: 24px Tahoma;
position: absolute;
bottom: 10px;
width: 300px;
height: 30px;
}
#send_button {
height: 30px;
position: absolute;
bottom: 10px;
right: 10px;
}
#chatbox {
border: 1px solid gray;
}
Ai says:
You say:
What's the problem here?