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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:03:37+00:00 2026-05-30T09:03:37+00:00

I am using Compas s with the Blueprint framework . I am using a

  • 0

I am using Compass with the Blueprint framework.

I am using a 24 column layout with a total width of 1000px. This is defined in my base.scss.

The markup looks like this:

<div id="menu">
  <div id="container">
     <div id="main-menu">
      <ul>
        <li>Link1</li>
        <li>Link2</li>
        <li>Link3</li>
      </ul>
     </div>
  </div>
</div>

The scss:

@import "../partials/base";
@import "blueprint";
@import "compass/typography/lists/horizontal-list";

#container{
  @include container();
}

#main-menu-container{
  background-color: red;
  min-width: 1000px;
  position: fixed;
  top: 0%;
  left: 50%;
  margin-left: 500px;

}

#main-menu{

  @include horizontal-list();
  @include span(24);
  border: red 1px solid;

}

The whole thing works. But I want to fix the menu to the top of the window.

The problem is that one I start adding position: fixed to any of the containers, then the background does not stretch 100%.

The effect I want is like facebook’s menu. Notice that the background stretches 100% but the menu occupies only the grid and is centered:

enter image description here
enter image description here

How can I achieve this kind of effect with blueprint?

I would prefer not to add any extra divs that do not have any sematic meaning.

  • 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-30T09:03:39+00:00Added an answer on May 30, 2026 at 9:03 am

    This is what I ended up with:

    @import "../partials/base";
    @import "blueprint";
    @import "compass/typography/lists/horizontal-list";
    
    #container{
      @include container();
    }
    
    #main-menu-container{
      background-color: blue;
      min-width: 1000px;
      position: fixed;
      width: 100%; //Notice that a width is explicitly set
      top: 0%;
    }
    
    #main-menu{
      @include horizontal-list();
      @include span(24, true);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using blueprint via Compass but have no scroll bars on longer pages,
Note: This question refers to a Rails project with Sass & Compass. Using the
I am trying to get compass/sass/haml working using blueprint but not having any luck
I've been using compass with blueprint for a while now and one thing I
I have a sample app that is using compass gem including blueprint. I just
I'm using Compass (a CSS Framework) to generate sprite images. It work, but compass
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
I've been using compass from http://compass-style.org/ to manage my sites css for a long
I need to map a collection of components with compass (using XML mapping)... Is
I'm using Compass to generate linear gradients but I'm getting a strange error indicating

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.