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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:37:10+00:00 2026-06-18T07:37:10+00:00

I am making a reactive website; meaning it re-sizes with the window. It was

  • 0

I am making a reactive website; meaning it re-sizes with the window. It was going well until I hit the navigation bar, which has a 15px curve on the bottom left and right corners and has a width of 100%. I want to place two 20px divs i call NavCap on either side of the Nav (which acts as a wrapper) div. This is easy and allows me to space the buttons and add images the the ends. The middle section called NavAction will have a 1px repeating background image so that it loads super fast on cruddy server.

The problem is that NavAction needs to take up as much space as possible without pushing the right NavCap onto the next, hidden line. Here is my code:

#nav {    
   width: 100%;
   height: 55px;
   position: relative;
   bottom: 0;
   overflow: hidden;
   background-color: #020202;
   -webkit-border-radius: 0px 0px 15px 15px;
   -moz-border-radius: 0px 0px 15px 15px;
   border-radius: 0px 0px 15px 15px;    
}

#nav * {    
   box-sizing: border-box;
   height: 100%;    
}

#navCap {    
   width: 20px;
   height: 55px;
   float: left;
   background-color: blue;    
}

#navAction {    
   width: 97.91%;
   height: 55px;
   float: left;
   padding: 0;
   background-color: green;    
}

        <div id="nav">                
            <div id="navCap"></div>                
            <div id="navAction">

            </div>                
            <div id="navCap" class="right"></div>

        </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-06-18T07:37:11+00:00Added an answer on June 18, 2026 at 7:37 am

    Don’t have two id’s with the same value of navCap.

    Instead of giving the navAction a width, give it a left and right value instead:

    #navAction {
        position         : absolute;
        left             : 20px;
        right            : 20px;
        top              : 0;
        height           : 55px;
        background-color : green;
    }
    

    Then set your caps like so:

    #navCapLeft, #navCapRight {
        width            : 20px;
        height           : 55px;
        position         : absolute;
        top              : 0;
        background-color : blue;
    }
    #navCapLeft {
        left : 0;
    }
    #navCapRight {
        right : 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Making a SMS App and it is going well so far, but ran into
Making a small WCF test program which is based on a Store that has
Making my PHP Command line application support Linux and Windows. Currently it has this
Making an Flex App. Just wondering if anyone has created something that fits automatically
Making good progress on rails now, but hit a snag on heroku deployment. After
Making .htaccess (mod_rewrite) work has been very difficult I already have this script for
I'm using reactive extensions in my wp7 app that I'm making and I wish
Making a left hand side menu for my website. Should I create a Unordered
Making a simple program which will generate a multiple choice form. I have an
Making a simple plugin , which executes javascript when a page is loaded ,

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.