fatkatie Posted June 16, 2018 Share Posted June 16, 2018 As the browser is made smaller, or the text larger, and a text line no longer can be placed on a single line, is there an event that signals the browser to wrap it? Is this an event which can be used? Say the text line was contained within a div element. Could I recognize a 'wrap' event, if there is one, for text within that div element? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/307380-when-a-text-line-wraps-is-there-an-event/ Share on other sites More sharing options...
requinix Posted June 16, 2018 Share Posted June 16, 2018 There is no a wrap event. There is a window resize event and a typing event. What is the problem you're trying to solve by detecting line wrapping? 1 Quote Link to comment https://forums.phpfreaks.com/topic/307380-when-a-text-line-wraps-is-there-an-event/#findComment-1558966 Share on other sites More sharing options...
fatkatie Posted June 17, 2018 Author Share Posted June 17, 2018 navbar breakpoint stuff. I have 'linear' lists, as menu items, that vary in length, and if they wrap before the nav 'breaks' the contents leak. I guess I can mess about dynamically with it's breakpoint setting. Was just wondering if I could do it myself. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/307380-when-a-text-line-wraps-is-there-an-event/#findComment-1558969 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.