Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Workplace Complaint Form</title> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> <style> html, body { min-height: 100%; } body, div, form, input, select, p { padding: 0; margin: 0; outline: none; font-family: Roboto, Arial, sans-serif; font-size: 14px; color: #666; line-height: 22px; } h1 { margin: 15px 0; font-weight: 400; } .testbox { display: flex; justify-content: center; align-items: center; height: inherit; padding: 3px; } form { width: 100%; padding: 20px; background: #fff; box-shadow: 0 2px 5px #ccc; } input, select, textarea { margin-bottom: 10px; border: 1px solid #ccc; border-radius: 3px; } input:hover, select:hover, textarea:hover { outline: none; border: 1px solid #095484; } input { width: calc(100% - 10px); padding: 5px; } select { width: 100%; padding: 7px 0; background: transparent; } textarea { width: calc(100% - 6px); } .item { position: relative; margin: 10px 0; } input[type="date"]::-webkit-inner-spin-button { display: none; } .item i, input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; font-size: 20px; color: #a9a9a9; } .item i { right: 2%; top: 30px; z-index: 1; } [type="date"]::-webkit-calendar-picker-indicator { right: 1%; z-index: 2; opacity: 0; cursor: pointer; } .btn-block { margin-top: 20px; text-align: center; } button { width: 150px; padding: 10px; border: none; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; background-color: #095484; font-size: 16px; color: #fff; cursor: pointer; } button:hover { background-color: #0666a3; } </style> </head> <body> <div class="testbox"> <form action="/"> <h1>Workplace Complaint Form</h1> <div class="item"> <p>Your name</p> <div> <input type="text" name="name" placeholder="First" /> <input type="text" name="name" placeholder="Last" /> </div> </div> <div class="item"> <p>Your email</p> <input type="text" name="name"/> </div> <div class="item"> <p>Date of complaint</p> <input type="date" name="name" required/> <i class="fas fa-calendar-alt"></i> </div> <div class="item"> <p>Your department</p> <select> <option value="">*Please select*</option> <option value="A">Department A</option> <option value="B">Department B</option> <option value="C">Department C</option> <option value="D">Department D</option> <option value="E">Department E</option> </select> </div> <div class="item"> <p>Office manager name</p> <input type="text" name="name"/> </div> <div class="item"> <p>The person(s) involved in this complaint are</p> <textarea rows="5"></textarea> </div> <div class="item"> <p>Note all relevant dates, places, events, etc. pertaining to the complaint</p> <textarea rows="5"></textarea> </div> <div class="item"> <p>Signature</p> <textarea rows="5"></textarea> </div> <div class="btn-block"> <button type="submit" href="/">Send</button> </div> </form> </div> </body> </html>