Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7658195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:10:12+00:00 2026-05-31T13:10:12+00:00

What am I doing bad? CSS: .submit{ padding-left:10px; margin:0; border:0; outline: 0; height:32px; padding-right:32px;

  • 0

What am I doing bad?

CSS:

.submit{
padding-left:10px;
margin:0;
border:0;
outline: 0;
height:32px;
padding-right:32px;
}
.green-btn {
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#61A801), to(#8CC400));
background: -webkit-linear-gradient(top, #8CC400, #61A801);
background: -moz-linear-gradient(top, #8CC400, #61A801);
background: -ms-linear-gradient(top, #8CC400, #61A801);
background: -o-linear-gradient(top, #8CC400, #61A801);
color: #fff;
font-family: verdana;
font-size: 13px;
font-weight: normal;
border-radius:5px;
}
.clipboard{
background-image: url(http://cdn1.iconfinder.com/data/icons/opensourceicons/32/Scissors.png) no-repeat right center;
}
​

HTML:

<input type="submit" value="Copy" class="submit green-btn clipboard">​

JSFiddle: http://jsfiddle.net/77NYA/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:10:13+00:00Added an answer on May 31, 2026 at 1:10 pm

    You cannot specify the position and repeat values inside the background-image property. You can only specify the URL to the image. You’ll have to separate them out like this:

    .clipboard {
        background-image: url(http://cdn1.iconfinder.com/data/icons/opensourceicons/32/Scissors.png);
        background-repeat: no-repeat;
        background-position: right center;
    }
    

    Also note: Some browsers (I don’t know which ones) don’t allow gradients and background images to be combined together.


    Here’s an alternate solution using a <button> with an <img> inside it:

    <button type="submit" value="Copy" class="submit green-btn">
        <img src="http://cdn1.iconfinder.com/data/icons/opensourceicons/32/Scissors.png" alt="[scissors]" />
        Copy
    </button>​
    
    .submit{
    padding-left:10px;
    margin:0;
    border:0;
    outline: 0;
    height:32px;
    line-height:32px;
    padding-right:10px;
    }
    .green-btn {
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#61A801), to(#8CC400));
    background: -webkit-linear-gradient(top, #8CC400, #61A801);
    background: -moz-linear-gradient(top, #8CC400, #61A801);
    background: -ms-linear-gradient(top, #8CC400, #61A801);
    background: -o-linear-gradient(top, #8CC400, #61A801);
    color: #fff;
    font-family: verdana;
    font-size: 13px;
    font-weight: normal;
    border-radius:5px;
    }
    .green-btn img {
    float: right;
    margin-left: 10px;
    }​
    

    And the jsFiddle preview. Feel free to play with the margins and stuff to make it look more how you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following CSS: body { margin-left:0px; margin-right:0px; margin-bottom:0px; margin-top:0px; background-image: url(../images/tile.png); background-repeat:
I'm doing something bad in my ASP.NET app. It could be the any number
I know I'm doing this a bad way... but I'm having trouble seeing any
why is doing the following so bad? String val = null; String someOtherValue =
I've been a bad programmer because I am doing a copy and paste. An
Tried doing http://davidwparker.com/2008/09/17/site-wide-announcements-in-rails-using-jquery-jgrowl/ Am really bad with JS. Think I am messing up on
I am doing a bad thing here. I am asking a question without trying
At the outset: I know that what I am doing is bad design. I
I have the following problem and I'm pretty bad at CSS, but good at
Let me start off by stating that I realize the arguments against doing CSS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.