Note that there are some explanatory texts on larger screens.

plurals
  1. POmulti-container blueprint grid and drop down menu cut off because of it
    primarykey
    data
    text
    <p>i have a dropdown menu in my header (blueprint) container (I'm using superfish jquery/css plugin). I have a footer and main content container as well. (I have them so I can have backgrounds in each that fill the browser width). The problem is the drop down menu (the drop down parts) gets cut off so you can't see the submenu links when its container ends and the next starts. By not putting the drop down menu in a container, I can circumvent this but then the menu is not aligned well. </p> <p>Is there a way I can use the blueprint container around my header and not get it cut off? or some css I could try to make it align with the grid? (I'm using a 960px wide grid--I tried copying all the related css but it still didn't align for some reason, so maybe I missed something)</p> <p>I've included some possibly relevant css...I was reluctant since it's still kind of messy but I had reasons for all the divs, I think...:( (#menu was used I think to separate the sf-menu and other links on the nav bar, #nav_container is to style the bar, blueprint grids must be contained in a .container, and trying to keep the code in superfish.css separate from my own styling until i figure out what's going on--I'm also not sure which properties I actually need in much of the following css, as I followed some examples with no explanations) Also, I'm using compass/sass rails plugin with blueprint, so the end result may be more verbose than normal css...</p> <pre><code>body .container { width: 950px; margin: 0 auto; overflow: hidden; *zoom: 1; } #nav_container { height: 34px; width: 100%; line-height: 36px; position: relative; z-index: 2; margin: 0; padding: 0; } #nav_container ul a { display: block; } #nav_container ul li { float: left; position: relative; top: -1px; } #nav_container #menu { display: inline; float: left; margin-right: 0; width: 950px; margin: 0 auto; } * html #nav_container #menu { overflow-x: hidden; } #nav_container #menu .sf-menu { width: 950px; margin: 0; margin-right: 0; display: block; float: left; } /*superfish stuff, edited from superfish.css*/ /* line 8, ../../app/stylesheets/partials/_superfish.sass */ .sf-menu ul { position: absolute; top: -999em; width: 10em; } .sf-menu ul li { width: 100%; } .sf-menu ul:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu li { float: left; position: relative; /* match top ul list item height */ } .sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; top: 3em; z-index: 2; } .sf-menu a { display: block; position: relative; } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 10.75em; /*adjust this if not using rounded corners etc */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 10em; /* match ul width */ top: 0; } /** DEMO SKIN ** */ .sf-menu { float: left; margin-bottom: 1em; } </code></pre> <p>HTML:</p> <pre><code>&lt;div id='headerbg'&gt; #this is a wrapper so the header has a full width bg image, just has a background property some stuff here &lt;div id='nav_container'&gt; &lt;div class='container'&gt; &lt;div id='menu'&gt; &lt;ul class='sf-menu'&gt; &lt;li&gt;&lt;a href="/"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/about"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Account&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#"&gt;Settings&lt;/a&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Other link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>So if I hover over Account in the main menu, there's a smidgen of a dropdown menu but Settings and Other link are cut off.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload