Hello. I am trying to learn CSS programming language, but there is problem almost in the beginning. I have an ugly, gray button on my webpage and I want to replace it with image, but that buton must work after this modification. Can you please tell me the syntax for doing this? Thank you.
To borrow from others on this forum "Here's why we can't help you" - No code, no help. Without knowing what HTML that CSS is being applied to, you are basically asking us to do brain surgery over a time phone to 1880! Is this 'button' an actual BUTTON tag? Is it an INPUT? Is it a styled anchor? Is it a miserable steaming pile of a DIV or SPAN with javascript on it? If it's a BUTTON, use an INPUT. If it's an INPUT, that's a content image so it doesn't BELONG in the CSS. Use: <input type="image" src="images/image.png" alt="images off text" /> If it's a DIV or Span being scripted, use a anchor. If it's an anchor, THEN you can use CSS, though the question becomes is the text for the image part of the image, or is the text going to go over it? That gets a bit more complex...