Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Button color

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #161245
    z160896
    Participant

    I am new in this area. I try to change the color of a submit button. I tried many different options, it did not not work. I can successfully change the text color of the button. Here is the code section. Can anyone help of how to change the button background color?

    .login-subbmit-button {
    width: 150px;
    margin-top:1.9em;
    margin-left: 33px;
    color: black !important;
    background-image: none;
    background-color: yellow !important;
    }

    the ‘background’ elements added don’t have any effect.

    Thanks

    #161247
    noahgelman
    Participant

    Do you have the background-color set anywhere else in your css?

    Also, you can right-click on the button and click “Inspect Element” to get all the details of the element and where the styles from from.

    #161262
    Paulie_D
    Member

    We would need to see the HTML & CSS in a Codepen to prooerly diagnose this issue.

    Failing that a live link.

    Although….could it be a spelling error?

    .login-subbmit-button
    

    should logically be…

    .login-submit-button
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.