main section a { color: #177ee6; text-decoration: none; } main section a:visited { color: #177ee6; text-decoration: none; } article div { /* background-color: #ff0000; */ justify-content: center; width: 100%; /* display: block; */ display: flex; flex-wrap: wrap; } article div form { /* background-color: #00ff00; */ display: block; /* text-align: center; */ align-content: center; align-items: center; /* justify-content: center; */ /* display: block; */ /* flex-wrap: wrap; */ /* for horizontal aligning of child divs */ justify-content: center; /* for vertical aligning */ /* align-items: center; */ width: 650px; } article div form div { /* background-color: #0000ff; */ /* display:inline-flexbox; */ /* width: 100%; */ /* display: block; */ width: 650px; line-height: 30px; /* align-items: center; */ justify-content: center; text-align: center; align-items: center; display: inline-block; } article div form div label { width: 100px; /* display: block; */ } article div form div input { width: 200px; /* display: block; */ } input[type=button] { color: #fff; background-color: blue; height: 30px; border: none; border-radius: 5px; cursor: pointer; } input[type=checkbox] { visibility: hidden; font-size: 25px; } input[type=checkbox]:after, input[type=checkbox]::after { content: " "; background-color: blue; display: inline-block; text-align: center; color: #fff; height: 30px; line-height: 30px; width: 30px; visibility: visible; border-radius: 15px; } input[type=checkbox]:checked:after, input[type=checkbox]:checked::after { content: "\2714"; }