html - CSS - Menu Text moving out of background -


hey guys new in css sorry if simple , stupid question, try style website begining, cant fail happend me menu, text moving out of background , cant find why.

it looks like: http://funedit.com/imgedit/soubory/small_18262058231396865881.jpg

but text should in middle of blacck background :p

my html:

  <div id="menu">     <ul>      <a href="#"><li>gamesites<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>hry<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>servery<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>clanky<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>forum<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>downloads<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>blogy<span id="arrow"></span></li></a>       <li id="spacer"> </li>       <a href="#"><li>flashovky<span id="arrow"></span></li></a>                                                     </ul>    </div> 

my css:

#menu{     background-image: url("images/menubg.png");     background-repeat: repeat-x;     height: 44px;     width: 983px;     margin: 0 22px;           }  #spacer{     background-image: url("images/menu_spacer.png");     background-repeat: no-repeat;     width: 1px;     height: 48px;     padding: 0px 0px; }  #menu ul{     list-style-position: inside;    /* bodka v novom riadku vo vnutry */     list-style-type: none;          /* bez bodky */ }  #menu ul li{        padding: 1px 5px 0px 0px;     display: inline-block;     color: #f7f7f7; } #arrow{     background-image: url("images/sipka.png");     background-repeat: no-repeat;     width: 10px;     height: 8px;     padding-left: 3px;     display: inline-block;  } 

you can find live preview on: http://funedit.com/andurit/try2/

i thank lot if u can me fix it.

#spacer{     background-image: url("http://funedit.com/andurit/try2/images/menu_spacer.png");     background-repeat: no-repeat;     width: 1px;     height: 28px;     padding: 0px 0px; } 

the thing changed height in spacer, affected alignment can check fiddle , output image working demo

fiddle

enter image description here

live demo of page:

enter image description here


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -