Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <style> .fieldset-form-container { max-width: 600px; margin: 30px auto; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; } .fieldset-form-container form { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .fieldset-form-container h2 { text-align: center; margin-bottom: 25px; } /* -- Fieldset and Legend Styling -- */ .fieldset-form-container fieldset { border: 1px solid #ddd; /* A subtle border */ border-radius: 5px; padding: 25px; /* Spacing inside the fieldset */ margin-bottom: 25px; } .fieldset-form-container legend { padding: 0 10px; /* Cuts a gap in the border */ font-size: 1.1rem; font-weight: 600; color: #333; } /* -- End Fieldset and Legend Styling -- */ .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: 500; } .form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; box-sizing: border-box; } .submit-btn { width: 100%; padding: 12px; border: none; background-color: #007bff; color: white; font-size: 1.1rem; font-weight: bold; border-radius: 5px; cursor: pointer; } </style> <div class="fieldset-form-container"> <form action="#" method="post"> <h2>Account Profile</h2> <fieldset> <legend>User Identity</legend> <div class="form-group"> <label for="username">Username</label> <input type="text" id="username" name="username"> </div> <div class="form-group"> <label for="email">Email Address</label> <input type="email" id="email" name="email"> </div> </fieldset> <fieldset> <legend>Security</legend> <div class="form-group"> <label for="current-password">Current Password</label> <input type="password" id="current-password" name="current_password"> </div> <div class="form-group"> <label for="new-password">New Password</label> <input type="password" id="new-password" name="new_password"> </div> </fieldset> <fieldset> <legend>Contact Information</legend> <div class="form-group"> <label for="phone">Phone Number</label> <input type="tel" id="phone" name="phone"> </div> <div class="form-group"> <label for="address">Mailing Address</label> <input type="text" id="address" name="address"> </div> </fieldset> <button type="submit" class="submit-btn">Save Changes</button> </form> </div>