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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:38:12+00:00 2026-05-22T12:38:12+00:00

I am trying to replicate the Navigation Buttons which exist within the ASP.NET Site:

  • 0

I am trying to replicate the Navigation Buttons which exist within the ASP.NET Site:
http://forums.asp.net/user/editprofile.aspx# (you have to log-in to see the tabs)

enter image description here

As you can see for an onClick Event the background of the Tab changes to white and the Text changes from Blue to Black. There is also a top left and right border applied to the Tab for an onClick. Also on the Hover the underline for the Button’s Hyperlink appears.

I tried to replicate as much as I could with Firebug, but Im missing some things. For example in my Fiddle the Button’s Hyperlink remains underlined.

Im also very unclear about the Click Event within the JQuery and how this is changing the background color from blue to white, and how the border is applied.
if anyone could improve upon this I would really appreciate it.

Here is what I have so far: http://jsfiddle.net/NinjaSk8ter/XrQys/

  • 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-22T12:38:13+00:00Added an answer on May 22, 2026 at 12:38 pm

    I don’t have access to the page but if you look at the CSS it should be pretty straight forward to see what they are doing. A great way to do this is to use Chrome and then when you right click on an item you can say “Inspect Element” and it will show you the CSS classes that are applied to the element/link.

    To remove the underline on a hyperlink look at CSS’s text-decoration.

    Usually to change the color of a button with jQuery, the easiest way is to use the .click() method and then to add a class to the object.

    $('a#my_link').click(function(){
      $(a#my_link.active).removeClass('active');
      $(this).addClass('active');
      ... do other stuff
    }
    

    untested

    http://jsfiddle.net/CrvJN/8/

    Notes about what I did:

    • removed the background-color for .common-heading-tabs a this way the blue and white class could actually have an effect
    • add/removed the blue/white class based on the click
    • returned false in order to make sure the anchor tag didn’t perform an unwanted action
    • white == active in this case
    • added class=”blue” to each anchor

    There are some other improvements you could do on .common-heading-tabs a and .common-heading-tabs, but that’s outside the scope of this question. I would suggest going through W3School’s lessons on CSS to get a better idea of what is available so you aren’t having to copy and paste so much compiled CSS from sites. IMHO. 🙂

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

Sidebar

Related Questions

I am trying to replicate an example found on MSDN. I am using ASP.NET
Im trying to replicate an effect as seen on http://www.fiat.co.uk/Showroom/#showroom/punto_evo/explore . I have made
I'm trying to replicate the browser post parameters on http://www.ebayclassifieds.com/m/PostAd?scrid=3465450-2253858851033189948 but for some reasons
trying to replicate the example here; http://onertipaday.blogspot.com/2011/07/word-cloud-in-r.html Need help figuring out how to increase
I'm trying to replicate an Ingres update tbl1 from tbl2 command, which doesn't exactly
I'm trying to replicate this layout with HTML/CSS: http://reformrevolution.com/ I think I'm getting close
i am trying to replicate DEMO 3 in this page: http://www.mudaimemo.com/p/simpledialog/ it works great
I'm trying to replicate this: http://webdesignerwall.com/tutorials/css-gradient-text-effect however I can't seem to get it to
I'm trying to replicate the following sliding navigation menu functionality (the one with TOP
I am trying to replicate a shell script within windows bacth. I am getting

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.