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

  • Home
  • SEARCH
  • 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

I'm having a few problems trying to position some div s in my website
hey stackoverflowers. im having a few problems with the code i have written to
First of all, have a look at this example of the layout I'm trying
I'm trying to use Twitter's bootstrap for a quick few pages. I'm having problems
I am having a few problems re-writing flat links using htaccess, I have two
I am trying to load a html page through UIWebview.I need to disable all
Im having a few problems with the form_dropdown function in CodeIgniter .... My application
I am having some problems with Internet Explorer. I have a Window with one
I'm having problems making my app iPad compatible. I have an implementation of a
Over the past few days, I have been trying to find an answer to

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.