Question

I want to show my button in Mozilla like Chrome so please help me what will I do for it. This is my code.

CSS:

.green {
     background: linear-gradient(to bottom, #9CD645 0%, #8AC530 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
     border: 1px solid #82B436;
}

.large {
     font-size: 18px;
}
.btn {
     border: 1px solid #82B436;
     border-radius: 25px;
     box-shadow: 0 1px rgba(99, 159, 8, 0.35);
     color: #508400;
     display: inline-block;
     font-weight: bold;
     padding: 3px 12px;
     text-decoration: none;
     text-transform: uppercase;
}

.green {
     background-color: #8CC63F;
 }

.btn span {
     background: url("images/icon_arrows.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
     display: block;
     float: right;
     height: 18px;
     margin: 5px;
     width: 18px;
}

HTML:

<a href="smoodees" class="btn large green">
    Check out our Smoodees
    <span></span>
</a>
Était-ce utile?

La solution

Checkout this fiddle:

http://jsfiddle.net/realdeepak/gvC9z/1/

or For browser compatibility in firefox, you can use css hack like this:

@-moz-document url-prefix() { 
  .large {
    font-size: 17px;
  }
}

Or Try this, And fix minor css padding alignment as per your screen:

<style type="text/css">
 .green {
     background: linear-gradient(to bottom, #9CD645 0%, #8AC530 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
     border: 1px solid #82B436;
}

.large {
     font-size: 18px;
}
.btn {
border: 1px solid #82B436;
border-radius: 25px;
box-shadow: 0 1px rgba(99, 159, 8, 0.35);
color: #508400;
display: inline-block;
font-weight: bold;
padding: 3px 30px 3px 10px;
text-decoration: none;
text-transform: uppercase;
position: relative;
}

.green {
     background-color: #8CC63F;
 }

.btn span {
     background: url("images/icon_arrows.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
     height: 18px;
     margin: 5px;
     width: 18px;
     position: absolute;
     top: 0;
     right: 0;
}

</style>

Autres conseils

Changing the answer completely.

Try this structure:

<a href="smoodees" class="btn large green"> <p id="text">Check out our Smoodees</p> <span></span> </a>

and change the CSS like so:

#id{ float: left }

span{ float: left }

edit: For multiple buttons, change the ID to a Class

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top