Changing background color of button with inline CSS

user3286482

I'm trying to change the background color of my submit button with inline CSS. Here's my code that isn't working:

<input name="submit" type="submit" value="Get My Free Quote!" style="font-size:20pt;input:focus{background-color:#1789E1}" class="slickbutton">

Is this not possible to do with inline CSS because it does work when I change it in my CSS file, but not when I do it inline...

Lokesh Suthar

Well, I see you are trying to change it's color on focus. You can't use :focus within inline css. You have to resort to a class or id.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Changing HTML button tag background color with css?

From Dev

Radio button not changing background color HTML/CSS

From Dev

Android Button background color not changing

From Dev

Changing the background color of a Button in Kivy

From Dev

Changing background color in wordpress with a button

From Dev

background color not changing on hover css

From Dev

background color not changing on hover css

From Dev

CSS changing (transitioning) background color

From Dev

Changing background color of a button when clicked

From Dev

<input type=button /> Changing Background color

From Dev

Changing background color on input focus with css alone

From Dev

changing css background color with javascript variables

From Dev

Automatic changing background color loop (jQuery/css?)

From Dev

changing css background color with javascript variables

From Dev

changing css background-color property

From Dev

Background color is not changing after adding CSS

From Dev

Automatic changing background color loop (jQuery/css?)

From Dev

CSS list menu is not changing background-color

From Dev

Changing background color based on browser size in CSS

From Dev

CSS Hover Text Changing Color With Button

From Dev

Fade background color of button on hover css

From Dev

CSS - Change button background color on hover

From Dev

SVG background covers button color in CSS

From Dev

Highlight effect on Button's onClick is gone after changing background to a color

From Dev

Simple way to show to the user that he pressed a button by changing the background color?

From Dev

No Touch feedback after changing Button background color in Android

From Dev

Changing the background color of a radio button with tkinter in Python 3

From Dev

Highlight effect on Button's onClick is gone after changing background to a color

From Dev

Changing background-color of a button using 1 javascript

Related Related

  1. 1

    Changing HTML button tag background color with css?

  2. 2

    Radio button not changing background color HTML/CSS

  3. 3

    Android Button background color not changing

  4. 4

    Changing the background color of a Button in Kivy

  5. 5

    Changing background color in wordpress with a button

  6. 6

    background color not changing on hover css

  7. 7

    background color not changing on hover css

  8. 8

    CSS changing (transitioning) background color

  9. 9

    Changing background color of a button when clicked

  10. 10

    <input type=button /> Changing Background color

  11. 11

    Changing background color on input focus with css alone

  12. 12

    changing css background color with javascript variables

  13. 13

    Automatic changing background color loop (jQuery/css?)

  14. 14

    changing css background color with javascript variables

  15. 15

    changing css background-color property

  16. 16

    Background color is not changing after adding CSS

  17. 17

    Automatic changing background color loop (jQuery/css?)

  18. 18

    CSS list menu is not changing background-color

  19. 19

    Changing background color based on browser size in CSS

  20. 20

    CSS Hover Text Changing Color With Button

  21. 21

    Fade background color of button on hover css

  22. 22

    CSS - Change button background color on hover

  23. 23

    SVG background covers button color in CSS

  24. 24

    Highlight effect on Button's onClick is gone after changing background to a color

  25. 25

    Simple way to show to the user that he pressed a button by changing the background color?

  26. 26

    No Touch feedback after changing Button background color in Android

  27. 27

    Changing the background color of a radio button with tkinter in Python 3

  28. 28

    Highlight effect on Button's onClick is gone after changing background to a color

  29. 29

    Changing background-color of a button using 1 javascript

HotTag

Archive