Treehouse: Grow your CSS skills. Land your dream job.

Override css in javascript form

  • # March 8, 2013 at 3:46 pm

    []( “”)

    This is ConstantContact javascript api. How do I style the css? Let’s say I want to start by changing the background to none. Then style the button. !important tags don’t work.

    # March 8, 2013 at 3:50 pm

    All the CSS is in your global stylesheet or contact-us sheet…exactly what is it you want to change?

    # March 8, 2013 at 3:52 pm

    I want to get rid of the white and grey backgrounds.

    Then color, size and position the submit button.

    # March 8, 2013 at 4:38 pm

    It loads CSS within the body tag and multiple files while at it. That is somewhat nasty and causes unnecessary headache.


    Sign up for our newsletter!

    # March 8, 2013 at 4:49 pm


    # March 8, 2013 at 4:56 pm

    What am I supposed to do with that code. Looks like you’re trying to connect the javascript to my css?

    # March 8, 2013 at 5:03 pm

    The javascript is apparently injecting remote CSS files into your page (presumably a theme)*

    *Unless you are doing it.

    As it’s loaded after the stylesheets in your [head] section it has a higher specificity in the CSS cascade

    # March 8, 2013 at 5:10 pm

    Correct, I’d have to pay a subscription so Formstack allows me to create a custom theme. What you see here is their default blank theme.

    # March 9, 2013 at 1:07 am

    You pays your money, you gets your choice.

    Or not.

    # March 9, 2013 at 1:12 am

    Sounds like it’s not possible since they’re remote injections.
    I was hoping there was a way to override.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.