[Resolved] Simple question on GP Generic button please!

Home Forums Support [Resolved] Simple question on GP Generic button please!

Home Forums Support Simple question on GP Generic button please!

  • This topic has 5 replies, 2 voices, and was last updated 5 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #865770
    Henry

    Sorry guys, I know that this is a simple question but here goes: does anyone know why the font color for this link in my button is blue? It should be WHITE on active, hover and visited.

    However the weird thing is that it remains ‘blue’ – so clearly the global setting is making it blue. I even added the !important tag and no joy….

    Any idea why it remains blue? Thanks!

    <a class="button sun-flower" href="#">Your button text</a>

    .button.sun-flower,
    .button.sun-flower:visited {
    	background: #74b9ff;
    	color:#FFF;!important
    }
    
    .button.sun-flower:hover,
    .button.sun-flower:active {
    	background: #0984e3;
    	color:#FFF;!important
    }
    #865939
    David
    Staff
    Customer Support

    Hi there,

    its an error in this CSS

    color:#FFF;!important

    the important must come before the semi colon like so:

    color:#FFF !important;

    #866641
    Henry

    Thank you David – that solved that issue but now this has happened: https://prnt.sc/nast2j

    Looks like a padding issue to me…

    Here’s the CSS that is being used:

    Thanks for your help..

    .button.sun-flower,
    .button.sun-flower:visited {
    	background: #74b9ff;
      color:#FFF !important;
      /* width: 100%; */
      /* cursor: pointer;
      text-align: center; */
    }
    
    .button.sun-flower:hover,
    .button.sun-flower:active {
    	background: #0984e3;
    	color:#FFF !important;
      /* width: 100%; */
      /* cursor: pointer;
      text-align: center; */
    }
    #866857
    David
    Staff
    Customer Support

    Remove the width: 100%; property entirely. That should stop it from extending outside the container.

    #867544
    Henry

    Thank you David – it worked.

    #867766
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.