Relative Content

Tag Archive for javascriptphphtmlwordpress

Activate auto-scroll when text exceeds screen width

I’m creating a plugin for wordpress using only php and css (for now at least) where it generates a topbar with a number of messages choosed by the user, i need to know how i can generate an ‘if’ statement that activates autoscroll only when text’s lenght of 1 or more messages or the sum of all texts’ lenght exceeds the screen’s width