bxslider - How make ticker text to come in single line instead of goes to the next line -


i using bxslider jquery in site news ticker, plugin works fine problem news goes next row , expand whole header makes website looks little bit awkward.

how can achieve news ticker in single line ?

    html <ul id="top-ticker"> <li>test test test test test test test test</li> </ul>  javascript code jquery(function($) { if( $("#top-ticker").length > 0 ) {     var topticker = $('#top-ticker').bxslider({         mode: 'vertical',         pager: false,         controls: false,         auto: true,         speed: 4000,         onsliderload: function() {              $('#top-ticker').addclass('ticker-loaded');          }     });  } 

});

css style

/* top ticker */ #top-ticker { list-style: none; margin: 0; padding: 0; } #top-ticker li { display: block; padding: 1px 0 } #top-ticker li + li { display: none; } #top-ticker.ticker-loaded li + li {     display: block; }  .fl-page-bar-text .bx-wrapper .bx-viewport { background: none; border: none; box-shadow: none; } 

try this:

#top-ticker li {     /* prevent going new line */     white-space: nowrap;     /* prevent horizontal scroll bar */     overflow: hidden; } 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -