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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:31:01+00:00 2026-05-23T18:31:01+00:00

I am working with this page : glustik.com/dustreeproductions/index.php I am trying to make the

  • 0

I am working with this page :
glustik.com/dustreeproductions/index.php

I am trying to make the “active-page” navigation show as such the “active-page”.

I have a body ID tag of body_company in the markup.

Here is the CSS Rules for the first Nav Button : Company

background:url(../images/navigation/nav-company.png) no-repeat;
display:block;
text-decoration:none;
width:103px;
margin:20px 27px 0 20px;
height:20px;}
#nav ul li#company a:hover {
background-position:0 -20px;}
#nav ul li#company a:active {
background-position:0 -40px;}
body #body_company #company a {
background-position:0 -40px;}

Relavant HTML Markup :

body id="body_company"

I have tried a few different things, cant seem to get it to show an active state when its on the page.

  • 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-23T18:31:01+00:00Added an answer on May 23, 2026 at 6:31 pm

    You have a space between body and #body_company, it should be:

    body#body_company #company a {
    

    or just:

    #body_company #company a {
    

    Edit: An additional problem: The selector for the “normal” state #nav ul li#company a has a higher specificity / value than the active selector:

    #nav ul li#company a
    

    scores higher in the cascade than:

    body#body_company #company a
    

    So you would have to use:

    #company a    /* for the normal state */
    

    or something like:

    body#body_company #nav #company a    /* for the active state */
    

    I would recommend just using #company a for the normal state, if your ID’s are unique (they should be anyway…), that´s specific enough.

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

Sidebar

Related Questions

Working on this page: http://www.karlsenner.dreamhosters.com/about.php and having trouble with the navigation in IE6. It
i have tried this code to redirect a php page.but it s not working
I swear, I have this exact thing working on another page. I'm such a
I'm working on this page: http://sydneypadua.com/2dgoggles/ And I'm trying to redefine the width of
I was working on this page: http://bigbassbrian.com/beta/photo.php I add the 2 following jQuery plugins:
I am working on this test page: http://www.problemio.com/test.php If you click the login link,
Working with this page here. http://careersinmusic.com/index.aspx The RED BAR, should open a modal window.
I am working off this test page: http://www.comehike.com/test_fb_connect.php When the user logs in using
I am working on this page: http://www.problemio.com/index_new.php When you mouse over the health link,
See this page i'm currently working on. http://lacrosselaundry.com/lacrosseLaundry/contact.php If i change the font-size for

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.