This is the code with in my html container :
div class = "ticker-container"
div class = "ticker-text"
Some text
and this the code for CSS:
.ticker_container {
width: 100%;
height: 2.9%;
border: 1px solid;
overflow: hidden;
}
.ticker-text {
height: 150%;
white-space:nowrap;
display:inline-block;
}
I would like to get the length of the text that is inputed into the html container. This is the code I have for javascript right now, but its not getting width.
var width = $('.ticker-text').width(),
containerwidth = Appery('ticker_container').width(),
left = containerwidth;