Note that there are some explanatory texts on larger screens.

plurals
  1. POlayout problems with CSS position
    primarykey
    data
    text
    <p>hey guys i'm trying to create a navigation system similar to the one you can find on starbucks.com. Here is the link to my sample: <a href="http://dl.dropbox.com/u/73992/js_tests/test.htm" rel="nofollow noreferrer">http://dl.dropbox.com/u/73992/js_tests/test.htm</a> I am accomplishing the effect with navigation sample on the bottom but as you can see there are positioning problems. You can find the CSS in the source code. I figured this is the best way to test it. Thank you in advance for any help I can get it. </p> <p>as per the suggestion here's the css</p> <pre><code>* { margin:0; padding:0; } #nav { position:relative; margin-top:3em; margin-left:3em; } #nav ul { list-style-type:none; } #nav ul li { position:relative; margin-top:10px; } #nav ul li ul li { margin-top:0px; } #nav ul li h1 { font-size:15px; font-weight:bold; text-align:center; color:#000000; background-color:#F7FF88; border:solid 5px black; width:100px; height:30px; border-bottom:none; z-index:20; } .content { position:relative; width:300px; background-color:#F7FF88; border:solid 5px black; } .content form { display:block; margin:10px 10px 10px 10px; } .content p { text-align:left; display:block; margin:10px 10px 10px 10px; } .gallery { margin:10px 10px 10px 10px; background-color:#ffffff; border:solid 1px black; } .gallery img { display:inline-block; margin:10px 5px 10px 0px; float:left; } /* This next section is identical but represents what happens w/ the absolute positioning. */ .content2 { position:absolute; width:300px; background-color:#F7FF88; border:solid 5px black; top:30px; z-index:-5; } .content2 form { display:block; margin:10px 10px 10px 10px; } .content2 p { text-align:left; display:block; margin:10px 10px 10px 10px; } .clear { clear:both; } </code></pre> <p>if this helps this is what I am trying to accomplish</p> <p><img src="https://i.stack.imgur.com/sa02v.png" alt="this is an example of the off hover(on) and then active when the section is clicked if i could get the css working the functionality would be easy... just can&#39;t seem to get these accomplished."></p>
    singulars
    1. This table or related slice is empty.
    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.
 

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