When using the <pre> tag in a form unexpected CSS elements get assigned causing it to turn grey background, be surrounded by a border and always be max length. Anyway around this?
Question
Question
Forms - Using Preformatted Text tag in forms assigns unexpected CSS elements
asked on February 17, 2016
•
Show version history
0
0
Replies
replied on February 18, 2016
it seems like there is a CSS class that is being applied to pre tag. try giving it a class like
<pre class="nostyle">
0
0
replied on February 23, 2016
Hi Chad,
The html pre tag is known to display text not as expected. There's a bit more information about the issue in the Help Files. We recommend removing the pre tag and for line breaks using br tags. If the issue is a different appearance following submission, you can include bootstrap in the CSS or Javascript to make it look as it does in the Forms Designer. I'll pass along your experience with the pre tag to the Forms team so that they're aware.
0
0
You are not allowed to follow up in this post.