This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Checkboxes/Multiple Choice align to the right


  1. moodleclass
    Member

    Hi

    How can align the Checkboxes/Multiple Choice Field (the Field Type not the Field Label)to the right instead of left?

    Thanks

    Posted 15 years ago #
  2. yuniar

    Edit your form CSS code. Search for this:

    #main_body label.choice
    {
    	color:#444;
    	display:block;
    	font-size:100%;
    	line-height:1.4em;
    	margin:-1.55em 0 0 25px;
    	padding:4px 0 5px;
    	width:90%;
    }

    change it to become:

    #main_body label.choice
    {
    	color:#444;
    	display:block;
    	font-size:100%;
    	line-height:1.4em;
    	margin:-1.55em 0 0 25px;
    	padding:4px 0 5px;
    	width:90%;
    
    	text-align: right;
    }

    MachForm Founder

    Posted 15 years ago #
  3. moodleclass
    Member

    Hi yuniar
    Thank you for your help.
    I still have a problem as you can see in this link:
    http://moodleclass.org/formmaker/view.php?id=2
    all the objects as Checkboxes/Multiple Choice and other are align to to left.
    Please help me to fix this problem - I need to align all the objects to the right.
    Thanks

    Posted 15 years ago #
  4. yuniar

    Try this, search for this code:

    #main_body form li span
    {
    	color:#444;
    	float:left;
    	margin:0 4px 0 0;
    	padding:0 0 8px;
    }

    change it to become:

    #main_body form li span
    {
    	color:#444;
    	float:right;
    	margin:0 4px 0 0;
    	padding:0 0 8px;
    }

    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply