I'm currently working on a webpage where the content always needs to fit within the visible width. Everything was going smoothly until I added a fieldset.
Strangely, the anchor text refuses to break when it's inside a fieldset. Could someone please explain:
- why is this happening?
- how can I work around this issue?
For example:
<fieldset>
<a href="example.com">verylonglinktextthatmakesproblemsinsmallwindows</a>
</fieldset>
<a href="example.com">verylonglinktextthatbreaksmagicallyoutsidethefieldset</a>
Check out the fiddle here: https://jsfiddle.net/myngsges/2/