SOLVED

How do I change the color of a Marketo Form

Go to solution
Anonymous
Not applicable

How do I change the color of a Marketo Form

Hi All:

I want to change the font color on my form but cannot figure out how to do this.

Any suggestions?

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: How do I change the color of a Marketo Form

The color is set via an inline style (attribute) on the form tag.

To override it, you can

[1] use !important:

.mktoForm {

  color: red !important;

}

[2] use a more specific CSS selector

[3] disable the style using JS

View solution in original post

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: How do I change the color of a Marketo Form

The color is set via an inline style (attribute) on the form tag.

To override it, you can

[1] use !important:

.mktoForm {

  color: red !important;

}

[2] use a more specific CSS selector

[3] disable the style using JS

Anonymous
Not applicable

Re: How do I change the color of a Marketo Form

Thanks!  That worked like a charm!

Anonymous
Not applicable

Re: How do I change the color of a Marketo Form

Also, is there a list of these kinds of inline updates available anywhere?  Just in case I want to change other things?  I guess I can figure it out but thought there might be a reference

SanfordWhiteman
Level 10 - Community Moderator

Re: How do I change the color of a Marketo Form

No reference that I've ever seen.  You could of course just destyle the entire form and style it back again from scratch. But then there are probably some default styles you want to keep, so... might as well wait until there's something specific you want to tweak.

Anonymous
Not applicable

Re: How do I change the color of a Marketo Form

Ok, I will work on it, thanks