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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:23:56+00:00 2026-05-15T15:23:56+00:00

Hi all having a few problems with my CSS I am trying to highlight

  • 0

Hi all having a few problems with my CSS
I am trying to highlight a link on the navigation based on the page the user is on.

I have this style which works as I would like it to do, but when I pass a query-string into pcisHPprofile.aspx the CSS is not working. Does anyone know how i can get this style to work with query-strings?

 body form[action="pcisHPprofile.aspx"] #btnuser

{
    padding: 18px 4px 5px 4px;
    background-image: url(../images/tabbluleft.gif) ;
    background-repeat:no-repeat; 
    color: #fff;

}



<div id="nav" class="nav" >

      <ul>
       <li id="tab1">
       <a id="btnsession" href="pcissessionlist.aspx" > <span >Session</span></a>
         </li>
          <li id="tab2">
              <a id="btnsystem" href="pcissystemsettings.aspx" > <span >System Settings</span></a>
            </li>
          <li id="tab3">
          </li>
          <li id="tab4">
                            <a id="btnuser" href="pcisuserlist.aspx" > <span >User Logins</span></a>
              </li>
          <li id="tab5">
                                          <a id="btninterpreter" href="pcisinterpreterlist.aspx" > <span >Interpreter Profile</span></a>

              </li>
       <li id="tab6"><asp:LinkButton ID="btnreports" runat="server" Visible="false" cssid="cssreports" PostBackUrl="#"><span>Reports</span></asp:LinkButton></li>
      </ul> 

    </div>
  • 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-15T15:23:57+00:00Added an answer on May 15, 2026 at 3:23 pm

    I assume that the #btnuser ARE some buttonS inside the some forms, where one of the forms have action=”pcisHPprofile.aspx”?

    If that is correct, then your error is the fact that you have many buttons with the same id attirbute id=”btnuser”. The ID attibute MUST be uniqe on the page. change the id=”btnuser” to class=”btnuser” on the buttons and your selector from:

    body form[action="pcisHPprofile.aspx"] #btnuser {
    }
    

    to

    body form[action="pcisHPprofile.aspx"] .btnuser {
    }
    

    Then it should work.

    In the first form it might work only if the FIRST button with id=”btnuser” is actually inside the form with action=”pcisHPprofile.aspx”. If it is inside any other form, then it will not work.

    Best regards,
    SWilk

    UPDATE:

    After OP updated the question, I think that this form of selector should work:

    body form[action^="pcisHPprofile.aspx"] #btnuser {
    ...
    }
    

    It would a element with id=btnuser inside a form, which action begins with “pcisHPprofile.aspx”. It would not matter if the acutal action attibute contain only “pcisHPprofile.aspx” or “pcisHPprofile.aspx?any-parameters&and=some-values”.

    Best regards,
    SWilk

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

Sidebar

Related Questions

Does it make sense, having all of the C#-managed-bliss, to go back to Petzold's
We all know that having a good note taking tool is important as a
I'm having issues creating an ActionLink using Preview 5. All the docs I can
We're having a bit of fun here at work. It all started with one
What is the best pattern for having a select all or deselect all checkboxes.
I'm getting all learned up about binding in WPF. I'm having a lot of
I am having a table Table1 with columns id1, id2, id3 all the columns
I haven't used regular expressions at all, so I'm having difficulty troubleshooting. I want
I've been profiling an application all day long and, having optimized a couple bits
That is, all text and subtags, without the tag of an element itself? Having

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.