Adding buttons to landing pages | Community
Skip to main content
Sarah_Smith
Level 2
February 20, 2018
Question

Adding buttons to landing pages

  • February 20, 2018
  • 1 reply
  • 4807 views

We use pill buttons on our website and would like to continue that practice on our Marketo landing pages. These pages do not have forms.

By adding the following to the template's CSS we can control the shape, background and border colors, but the font color will not change from white even though it is specifically called out to be black. .

Any ideas why this won't work? 

/*add button css*/  

.button

  -webkit-border-radius: 30;

  -moz-border-radius: 30;

  border-radius: 30px;

  font-family: Arial;

  font-size: 16px;

  background: #ffc20e;

  color: #000000;

  padding: 10px 20px 10px 20px;

  border: solid #ffc20e 1px;

  text-decoration: none;

}

.btn:hover {

  background: #768692;

  text-decoration: none;

}

  /*end button css*/ 

1 reply

Grégoire_Miche2
Level 10
February 20, 2018

Hi Sarah,

This is CSS debugging, and has nothing to with Marketo

Try

  color: #000000 !important;

Otherwise, provide the URL of the page.

-Greg

Sarah_Smith
Level 2
February 20, 2018

The reason I posted it here is because my code works fine elsewhere. The only place it doesn't work is on a Marketo Landing page.

I tried using !important;   but that doesn't change anything.

Grégoire_Miche2
Level 10
February 20, 2018

What code ? We really cannot help without the URL of the faulty landing page.