Jump to content
  • 0

Выпадающее меню


Spidey
 Share

Question

Добрый день! Подскажите пожалуйста как сделать, что бы второе "Page 3" выпадало справа от первого? наперед спс кто поможет)

<style type="text/css">

.menu { width:500px;}

.menu ul { list-style:none; margin:0px; padding:0px;}
.menu ul li { float:left; margin:0 0 0 2px; text-align:center;}
.menu ul li a { display:block; width:100px; background:#3366FF;}
.menu ul li a:hover { background:#FF0000;}
.menu ul li ul { display:none; width:215px;}
.menu ul li ul li { float:none; margin:5px 0 0 0;}
.menu ul li:hover ul { display:block; position:absolute;}
.menu ul li ul li .ul { display:none; float:left;}
.menu ul li ul li .ul2 { display:none; float:none; position:relative;}
.menu ul li:hover ul li:hover ul { float:none; display:block; position:absolute;}

</style>

<div class="menu">
<ul>

<li><a href="#">Page 1</a>

<ul>
<li><a href="#">Site 1</a></li>
<li><a href="#">Site 2</a></li>
<li><a href="#">Page 3</a>

<ul class="ul2">
<li><a href="#">Site A</a></li>
<li><a href="#">Site B</a></li>
<li><a href="#">Site C</a></li>
<li><a href="#">Site D</a></li>
<li><a href="#">Site E</a></li>
<li><a href="#">Site F</a></li>
</ul>

</li>
<li><a href="#">Site 4</a></li>
<li><a href="#">Site 5</a></li>
<li><a href="#">Site 6</a></li>
</ul>


</li>

</ul>

</div>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy