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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:12:00+00:00 2026-05-30T20:12:00+00:00

Imagine you have two adjacent columns. The first (left most) is the primary navigation

  • 0

Imagine you have two adjacent columns. The first (left most) is the primary navigation and the second is the secondary navigation. To the right of these is the actual content.

I have links in both columns as unordered lists. The selected links in each are highlighted by changing the background colour. The final part of the design is that the selected items needs to ‘stickout’ on the right hand side with a pointed arrow design (for which I have been provided an image for).

This is what I am having trouble with. I need to position an image to the very right of the PrimaryNavigationSelected. I am trying to extend the li element beyond it’s parent borders and attach the arrow image as background. Is this the best way to do this? Can you make an li element extend beyond the borders of its parent?

The system is for a help like system that will be using an embedded IE7 control but the design is planned to be used eventually for the online help.

Code below: Note – the SecondaryNavigation is similar to Primary except for a change in colours and I don’t feel comfortable posting over 160 lines of CSS. If you can show how to do it to the primary navigation I could make that extend to secondary.

HTML

<body>
<div id="PrimaryNavigation">
<ul>
<li class="PrimaryNavigationDeselected"><a href="#">Primary Navigation Goes Here</a></li>
<li class="PrimaryNavigationDeselected"><a href="#">Primary Navigation Goes Here</a></li>
<li class="PrimaryNavigationSelected"><a href="#">Primary Navigation Goes Here</a></li>
<li class="PrimaryNavigationDeselected"><a href="#">Primary Navigation Goes Here</a></li>
</ul>
</div>
<div id="SecondaryNavigation">
<ul>
<li class="SecondaryNavigationSelected"><a href="#">Secondary Navigation Goes Here</a></li>
<li class="SecondaryNavigationDeselected"><a href="#">Secondary Navigation Goes Here</a></li>
<li class="SecondaryNavigationDeselected"><a href="#">Secondary Navigation Goes Here</a></li>
<li class="SecondaryNavigationDeselected"><a href="#">Secondary Navigation Goes Here</a></li>
</ul>
</div>

CSS

#PrimaryNavigation {
position: absolute;
height: 100%;
width: 20%;
background-color: #2BB1E4;
}

#PrimaryNavigation * {
    position: relative;
    margin: 0; 
    padding: 0; 
}

#PrimaryNavigation ul {
    list-style-type: none;
    padding: 44px 0 0 0; 
}

#PrimaryNavigation li {
    padding: .2em 0;
    padding-left: 1em;
    margin-bottom: 1em;
}

#PrimaryNavigation a {
    color: white;
    text-decoration:none;
}

.PrimaryNavigationDeselected {
    color: #FFFFFF;
}

.PrimaryNavigationDeselected:hover {
    color: #FFFFFF;
}

.PrimaryNavigationSelected {
    margin: 1em;
    color: #FFFFFF;
    background-color: #0079A7;
}

.PrimaryNavigationSelected:hover {
    color: #FFFFFF;
    background-color: #0079A7;
}
  • 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-30T20:12:01+00:00Added an answer on May 30, 2026 at 8:12 pm

    Managed to get it working.

    Firstly the environment it will end up in is an IE7 control so I had to add

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    

    To get the code to work in IE7 after I managed to get it working in IE8.

    For IE8 I needed to add the following to PrimaryNavigationSelected:

    padding-right: 8px; 
    right: -8px; 
    margin-left: -8px; 
    color: #FFFFFF;
    background: transparent url(arrow.png) 100% 50% no-repeat;
    

    But for IE7 you need to remove the right and margin-left properties.

    Strange, but true.

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

Sidebar

Related Questions

Imagine I have two C# files. The first file, Class1.cs contains namespace CrossReferenceCheckingTest {
Imagine I have two directories, foo and bar in a parent directory, and these
Imagine I have two tables: PETS SPECIES The SPECIES table has two columns: ID
Imagine you have two images A and B, and a third grayscale image T.
Imagine the following situation: I have two branches: DEV and MAIN. I'm working on
Imagine a situation, I have PC with two lan cards, one is connected to
Imagine I have these python lists: keys = ['name', 'age'] values = ['Monty', 42,
Imagine I have two (three, four, whatever) tasks that have to run in parallel.
Imagine that we have two tables as follows: Trades ( TradeRef INT NOT NULL,
Let's imagine that we have two arrays: $array_1 = array( '0' => 'zero', '1'

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.