Quantcast
Channel: CSS issue styling button - Stack Overflow
Viewing all articles
Browse latest Browse all 4

CSS issue styling button

$
0
0

I'm attempting to style a button with CSS. Here is the HTML code for the button:

<button class='custombtn' name="doLogin" type="submit" id="doLogin3" value="Login">Login</button>

Here is the CSS code.

.custombtn {    width:163px;    height:43px;    background-image:url('images/normal.png');    background-color:#d3d3d3;}.custombtn:hover {    background-image:url('images/hover.png');}.custombtn:active {    background-image:url('images/click.png');}

I thought everything was fine & dandy, until I viewed the results. Instead of something like this with text on it:

enter image description here

It looks like this:

enter image description here

I've been reading fixes for these online for around an hour and a half, however none of them have worked. I know it's possible to style it to look like this, I just need to find a way.

normal.png

enter image description here

hover.png

enter image description here

click.png

enter image description here


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images