I’ve noticed that when I wrap a hyperlink around a div that has text in it, that Percussion will rewrite the code to where the hyperlink appears above the div. I’ve even added a before the opening div and it still does this. Here is an example of the code.
You’re adding this code into a Rich Text widget, correct? In the current version of the TinyMCE plugin that we’re using to power the RTW, nesting Div tags within anchor tags is not regarded as valid HTML and will be stripped out (even though HTML5 now accepts this practice).
As a workaround, you could use CSS to style a Span tag to behave in the same manner as your Div tag (block display, etc.) and wrap your A tag around that. Otherwise, feel free to post an Idea requesting we modify our instance of TinyMCE to allow for Div tags within A tags.