Form/css: How do I move a checkbox to the far left?

Form/css: How do I move a checkbox to the far left?

by Russell England -
Number of replies: 0
Picture of Plugin developers

Apologies in advance but my css skills are pretty bad.

I have a form with a series of checkbox elements, there is no label on the left - the label is on the right.

So I want to move the whole thing to the far left.

$mform->addElement('advcheckbox', 'series[' . $seriesname . ']', null, $seriesname, array('class' => 'movemetotheleft'));

If I inspect the element, its using a float: right

.mform .fitem .felement {
  1. width74%;
  2. floatright;
  3. margin-left0;
}

If I change that in Chome to float: left it works, but I only want the specific elements to move to the left, not everything.

I know I need to add some css somewhere but that's where I'm a bit stuck. I'm not sure where or what css to change in the code, any ideas?
Average of ratings: -