Sometimes elements may be styled with a fixed width. The problem with this is if you change the text to be displayed within the styled element, for example changing the language you wish to view the website in, then some of the text may not be displayed as expected.
Identifying links styled with a fixed width where text may not be displayed as expected
- Open DevTools within Chrome :
- Paste the following snippet into the console tab and press
Enteron your keyboard to execute the snippet on the web page you are currently viewing
The above snippet find’s all a (links) within the currently loaded document (web page). For each link which is found, we then loop through each link on the loaded document and increase it’s text length by appending a random string to the end of it.
Find this useful?
Why not check out the UsefulJsSnippetExtension.