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

Need template or CSS for use on Dark background


  1. gretasgourmet
    Member

    I've looked at the CSS code and it isn't clear to me "what controls what" as far as the color go. Maybe just my inexperience.

    I need to create a form to lay on top of a dark background. This means I need the base layout to have white text - but when the highlight happens I want the text to be standard dark colors.

    Can you help please?

    Posted 14 years ago #
  2. redityo

    Let's try with these changes.

    1. Search for these css code

    #form_container
    {
    	background:#fff;
    	border:1px solid #ccc;
    	margin:0 auto;
    	text-align:left;
    	width:640px;
    }

    then change it to

    #form_container
    {
    	background:#000;
    	border:1px solid #ccc;
    	margin:0 auto;
    	text-align:left;
    	width:640px;
    }

    2. Add this CSS code to your css form

    * {
    color:#fff !important;
    }
    
    #main_body form li.highlighted label
    {
    color:#000 !important;
    }

    That would do it


    MachForm Support

    Posted 14 years ago #
  3. gretasgourmet
    Member

    I have made SO many changes to the CSS trying to make this work. I guess I should have made a backup of the file.

    Where can I get a fresh version of the CSS so I can start over?

    Posted 14 years ago #
  4. yuniar

    You can simply copy the view.css file which is located under your main machform folder.


    MachForm Founder

    Posted 14 years ago #

RSS feed for this topic

Reply