Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
IT is my HTML code and tags


XML
<div class="MenuTheme">
  <ul class="Menu">
    <li> <a href="#"> صفحه اصلی </a> </li>
    <li> <a href="#"> سرفصل ها </a>
      <ul>
        <li> <a href="#"> آیلتس </a> </li>
      </ul>
    </li>
    <li> <a href="#"> پرسش های متداول </a> </li>
    <li> <a href="#"> دیکشنری </a> </li>
    <li> <a href="#"> آموزش تصویری </a> </li>
    <li> <a href="#"> کتاب ها </a> </li>
    <li> <a href="#"> منابع </a> </li>
    <li> <a href="#"> گرامر </a> </li>
    <li> <a href="#"> درباره ما </a> </li>
    <li> <a href="#"> ارتباط با ما </a> </li>
  </ul>
</div>




SQL
And here is my CSS code





CSS
.MenuTheme {
    background: #333;
    width: 1000px;
    height: 60px;
    background: #333;
    margin: auto;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
ul, li {
    padding: 0;
    margin: 0;
}
.Menu >li {
    display: inline-block;
    padding-top: 15px;
    color: #FFF;
    direction: rtl;
    float: right;
}
.Menu >li>a {
    text-decoration: none;
    font: 13px Tahoma, Geneva, sans-serif;
    color: #FFF;
}
.Menu >li>a:hover {
    background: #999;
    border-radius: 5px;
    text-decoration:none;
}
.Menu >li>ul {
    color: #FFF;
    display: none;
    position: absolute;
    background-color: #FFF;
    border: solid;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.Menu >li:hover>ul {
    display: block;
    color: #FFF;
    list-style: none;
    text-decoration:none;
}
.RightBox {
    background: #333;
    width: 250px;
    height: 940px;
    margin-left: 918px;
    margin-top: 10px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: solid;
    border-color: #CCC;
}
Posted

1 solution

Your question is unclear - what do you mean by "spread my menu" ? If you mean display it horizontally (across the page) instgead oif vertically (up and down), first delete all the > signs in your CSS code, then replace
CSS
.Menu li {
    display: inline-block;


with
CSS
.Menu li {
    display: inline;
 
Share this answer
 
Comments
[no name] 8-Nov-13 5:32am    
You're right a little bit it's unclear but what i mean exactly
is the i couldn't separate the title in my menu they hang or snap'n together and i couldn't separate them or make a space between them i don't know why ?

I upload a image at what i made an my problem i hope u could help me
Thanks for ur attention

Here is my Problem link as a IMAGE :

http://s4.picofile.com/file/7997044080/Menu.png
Wombaticus 8-Nov-13 5:41am    
You want spaces separating your menu items? Try adding
margin-right: 10px;
to the style for these list items (.menu li)
[no name] 8-Nov-13 5:52am    
Thanks men You helped me wonderful

it works

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900