79823820

Date: 2025-11-18 20:58:00
Score: 0.5
Natty:
Report link

If you're able to edit the html, you can add a span around the checkbox, and style that instead of styling the checkbox directly.

<style>
  label {
    float: left;
    margin: 5px 0px;
    width: 150px;
  }
  label + * {
    margin: 5px 0px;
    width: 200px;
  }
  .clear {
    clear: both;
  }
</style>

<div>
  <label for="autologin2">Remember Me 2</label>
  <span><input type="checkbox" class="checkbox" id="autologin2" name="autologin2" value="1"></span>
  <div class="clear">
</div>

screenshot of jsfiddle showing the centered and non-centered checkboxes

jsfiddle

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Nycki