Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created March 29, 2018 14:09
Show Gist options
  • Save diego3g/a3b8dc290750e928eb05e33a26670a0a to your computer and use it in GitHub Desktop.
Save diego3g/a3b8dc290750e928eb05e33a26670a0a to your computer and use it in GitHub Desktop.
html, body {
height: 100%;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#chat {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
input {
width: 600px;
border: 1px solid #ddd;
height: 50px;
padding: 0 20px;
font-size: 14px;
}
button {
width: 600px;
height: 50px;
font-size: 14px;
background: #069;
text-align: center;
line-height: 50px;
font-weight: bold;
color: #FFF;
margin-top: 10px;
}
.messages {
width: 600px;
height: 400px;
margin: 20px 0;
border: 1px solid #ddd;
padding: 20px;
}
@Machado28
Copy link

Muito boas as tuas correções. Mas o código é apenas para mostrar o uso de webSocket.. mas não é nada mal dares uma melhorada.. tanto um quanto o outro ajudou-me muito para entender a parada. muito grato

@allancssio1
Copy link

os estilos responsivos estao todos quebrados ... e e muito estranhos. kkkkkk quem fez nao testou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment