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 8200547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:29:12+00:00 2026-06-07T06:29:12+00:00

I have an MVC application which requires nice rounded buttons and to work on

  • 0

I have an MVC application which requires nice rounded buttons and to work on IE7.
I have found some code to style anchor tags so as to make them look like nice buttons.

Unfortunately, they seem to be totally outside of the tabbing order (I can’t navigate to those controls by pressing tab). On some screens I can fix this by adding tabindex to all of the controls on the form, but unfortunately it is not possible to do this on all screens (for instance I sometimes use partial views).

Note tabbing to the controls also doesn’t work in FireFox.

My “buttons” are placed like so:

<a class="btn green" id="Submit">Save</a>

There is some javascript, which adds some and tags to this class to allow it to have rounded corners, so the anchor tags are converted to this:

<a class="btn green" id="Submit"><i></i><span><i></i><span></span>Save</span></a>

and they are styled with the following css:

    .btn { display: block; position: relative; background: #aaa; padding: 5px; float: left; color: #fff; text-decoration: none; cursor: pointer; }
    .btn * { font-style: normal; background-image: url(images/btn2.png); background-repeat: no-repeat; display: block; position: relative; }
    .btn i { background-position: top left; position: absolute; margin-bottom: -5px;  top: 0; left: 0; width: 5px; height: 5px; }
    .btn span { background-position: bottom left; left: -5px; padding: 0 0 5px 10px; margin-bottom: -5px; }
    .btn span i { background-position: bottom right; margin-bottom: 0; position: absolute; left: 100%; width: 10px; height: 100%; top: 0; }
    .btn span span { background-position: top right; position: absolute; right: -10px; margin-left: 10px; top: -5px; height: 0; }
    a.btn {color: #333;text-decoration: none; font-weight:bold; font-family: Arial; font-size: 12px; }
    * html .btn span,
    * html .btn i { float: left; width: auto; background-image: none; cursor: pointer; }

    .btn.green { background: rgb(175,211,86);  }
    .btn:hover { background-color: #FFF; }
    .btn:focus { background-color: #FFF; }
    .btnFocus  { background-color: #FFF !important; }
    .btn:active { background-color: #444; }
    .btn[class] {  background-image: url(images/shade.png); background-position: bottom; }

    * html .btn { border: 3px double #aaa; }
    * html .btn.green { border-color: #9d4; }

    * html .btn:hover { border-color: #a00; }
  • 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-06-07T06:29:14+00:00Added an answer on June 7, 2026 at 6:29 am

    Ah, just figured it out.

    It works fine if we add an href attribute to the anchor tags

    <a class="btn green" id="Submit" href="#">Save</a>
    

    Sorry to trouble everyone.

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

Sidebar

Related Questions

I have a web application built on ASP.NET MVC framework which requires a service
I have MVC webApi application which works with Unity . I have to resolve
I have an MVC application which is my marketing website, and two other regular
I have an MVC application which has a set of fields for contact details
I have a Spring MVC application which uses FreeMarker as View technology (But maybe
I have a C# MVC application which I need to output the following data
I have a ASP.NET MVC application which is build up as an assembly that
I have an ASP.NET MVC 3 application which has a post action called Create
I have an .NET 4.0 ASP.NET MVC application, which also hosts a Workflow Foundation
I have a Clustered Windows Hosting site which currently hosts an MVC Web Application

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.