Note that there are some explanatory texts on larger screens.

plurals
  1. POApply a visibility effect on a div using CSS
    primarykey
    data
    text
    <p>I'm having difficulties achieving my desired effect on my website project.</p> <p>I want to hover my pointer and then a registration box appears. I don't have the menu drop down on login and products. But I can't do it on register. Please help. <strong>Here is the code:</strong></p> <pre><code>&lt;div class="menu"&gt; &lt;!-- enter code here --&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html" class="active"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="products.html"&gt;Products&lt;/a&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="books.html"&gt;Books&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="magazine"&gt;Magazines&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="audio.html"&gt;Audio CDs&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="dvd.html"&gt;DVDs&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;login&lt;/a&gt; &lt;ul &gt; &lt;li&gt;&lt;input type="text" name="username" value="" placeholder="Username" style="color:#939393" &gt;&lt;/li&gt; &lt;li&gt;&lt;input type="password" name`enter code here`="password" value="" placeholder="Password" style="color:#939393" &gt;&lt;/li&gt; &lt;li&gt;&lt;input type="button" value="login" style="color:#939393;width:158px" &gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#register"&gt;Register&lt;/a&gt;&lt;/li&gt; &lt;ul&gt; &lt;!--This is the div I want to show--&gt; &lt;div id="register"&gt; &lt;input type="text" placeholder="First Name" value=""&gt; &lt;/div&gt; &lt;/ul&gt; &lt;/ul&gt; </code></pre> <p> </p> <p>and here is my CSS. note that Products tab and Login tab are working.</p> <pre><code>.menu { padding:38px 0 0 0; margin:0 ; width:380px; float:left; font-size:13px} .menu ul {list-style:none; margin:0;padding:0; } .menu li {float:left;position:relative; } .menu li ul{ position:absolute; top:30px; left:0; visibility:hidden; background:url(images/main_bg.gif);} .menu li:hover ul{visibility:visible; z-index:20;} .menu li ul li {float:none;} .menu ul li { float:left; margin:0; padding:0 10px; border:0;} .menu ul li a { float:left; margin:0; padding:12px 0; color:#939393; font:normal 11px Arial, Helvetica, sans-serif; text-decoration:none; text-transform:uppercase;} .menu ul li a:hover { color:#ddd;} .menu ul li a.active { color:#ddd;} .menu li:hover *#register{visibility:visible; z-index:20;} #register {position:absolute; top:30px; left:0; visibility:hidden; background:url(images/main_bg.gif);} </code></pre> <p>the last 2 lines are the ones that doest seem to work. thank you for your help</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.
 

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