jquery - Links overflowing out of container div -


i have jquery animation banner area on webpage run on body load. banner display set none initially, changed when function runs.

function displayexpand()     {     $('#displayarea').slidedown('slow', function(){});     } 

for strange reason container navigation menu overflows , each link stacks on top of on far right side of page. stranger happens when refresh page. if access page link navigation menu fine. seems happen when run in chrome

css

#linkcontainer {     margin-top:20px;     float:right;     text-align:right;     height:55px; } 

html

<div id="linkcontainer">     <div class="mybuttons" style="color:#c00; font-weight:bold;">home</div>     <a href="about.html" style="text-decoration:none"><div class="mybuttons">about</div></a>     <a href="portfolio.html" style="text-decoration:none"><div class="mybuttons">portfolio</div></a>     <a href="resume.html" style="text-decoration:none"><div class="mybuttons">resume</div></a>     <a href="contact.html" style="text-decoration:none"><div class="mybuttons">contact</div></a> </div> 

any suggestions why?

if want display them in horizontal nav bar. instead of div's use <li>

here code:

html

<div id="linkcontainer">     <ul>         <li><a href="">home</a></li>         <li><a href="">about</a></li>         <li><a href="">portfolio</a></li>         <li><a href="">resume</a></li>         <li><a href="">contact</a></li>     <ul>   </div> 

css

#linkcontainer { margin-top:20px; float:right; height:55px; width:auto; }  ul li {     list-style:none;     display:inline-table;     padding-left:30px; } 

hope you..


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -