h1 { font-size: 2em; color: #4B4545; text-align: center; } .draggable { color: white; cursor: move; font-size: 25px; height: 100px; line-height: 100px; position: absolute; text-align: center; top: 200px; width: 100px; } .blue { background: blue; } .green { background: green; } .red { background: red; } .white { background: white; border: 1px solid black; color: black; }