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

  • SEARCH
  • Home
  • 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 3360744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:01:45+00:00 2026-05-18T03:01:45+00:00

Kind of come up a against a weird problem… Here is my css for

  • 0

Kind of come up a against a weird problem…

Here is my css for a button:

a.cta-btn-green { 
    color:#fff !important; 
    font-size:14px !important; 
    font-weight:bold; 
    text-shadow: #060 1px 1px 1px; 
    background-color:#329122; 
    padding:5px 10px;
    -moz-border-radius:14px; 
    -webkit-border-radius:14px; 
    text-decoration:none;
    float:right;
    border:0;
    font-family:Arial, Helvetica, sans-serif;
    cursor:pointer;
    background: -moz-linear-gradient(100% 100% 90deg, #307d23, #4ac236); 
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#4ac236), to(#307d23));
}


input.cta-btn-green { 
    color:#fff !important; 
    font-size:14px !important; 
    font-weight:bold; 
    text-shadow: #060 1px 1px 1px; 
    background-color:#329122; 
    padding:5px 10px;
    -moz-border-radius:14px; 
    -webkit-border-radius:14px; 
    text-decoration:none;
    float:right;
    border:0;
    font-family:Arial, Helvetica, sans-serif;
    cursor:pointer;
    background: -moz-linear-gradient(100% 100% 90deg, #307d23, #4ac236); 
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#4ac236), to(#307d23));
} 

Both CSS classes are the same, but one is applied to <a> and the other is applied to <input type="submit" /> …The effect is that Firefox is giving the input.cta-btn-green greater height than a.cta-btn-green ?

Can anyone tell me where I’m going wrong?

Thanks

  • 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-18T03:01:46+00:00Added an answer on May 18, 2026 at 3:01 am

    if you tell your a and input to display:block then you will be able to set specific heights and thus make them the same.

    so add the following lines to both rules:

    display:block;
    height:20px; /*adjust this as needed*/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A problem I come up against again and again is handling redirection to the
Kind of a special case problem: I start a process with System.Diagnostics.Process.Start(..) The process
Kind of a weird question, but. I need to have a list of strings
I'm trying to come up with some kind of standard to determine a maximum
I come across this kind of a situation a lot. class A{ public static
i'm currently constructing some kind of mini-framework for a project, and come up with
I often come accross the problem that I have a class that has a
This is kind of weird. I'm trying to get my code up on my
Do NSManagedObjects come with any kind of unique identifier? I need to fetch a
I'm trying to come up with the best way of doing some kind of

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.