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

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 following exemple : http://www.leigeber.com/2008/04/map-your-users-using-the-google-maps-api-and-php/ How to integrate this PHP
Trying to replicate the following query using Zend_Db_Select . Any pointers? SELECT compounds.id as
Trying to replicate the docking controls in Visual Studio 2008. My application replays the
I've been trying to replicate Gnu Find (find .) in PHP, but it seems
I am trying to replicate a database from SQL server 2000 to 2005 they
I'm trying to replicate a UI like a gcalendar (only the layout not any
I am trying to replicate the text overlay effect that occurs when you mouse
ok, so i am trying to replicate this animation at the top of this
Here's how standard section header views handle scrolling/overlaping: I'm trying to replicate the same

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.