<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Text positioning in validation error div</title>
		<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div</link>
		<description>Gravity Support Forums Topic: Text positioning in validation error div</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:33:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/text-positioning-in-validation-error-div" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56515</link>
			<pubDate>Wed, 25 Apr 2012 10:53:42 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">56515@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad to hear it. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Robsticles on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56514</link>
			<pubDate>Wed, 25 Apr 2012 10:52:32 +0000</pubDate>
			<dc:creator>Robsticles</dc:creator>
			<guid isPermaLink="false">56514@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok I got it working now. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56508</link>
			<pubDate>Wed, 25 Apr 2012 10:44:38 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">56508@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Kevin's example is exactly what you are looking for as it requires no extra markup to make happen.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Robsticles on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56506</link>
			<pubDate>Wed, 25 Apr 2012 10:40:58 +0000</pubDate>
			<dc:creator>Robsticles</dc:creator>
			<guid isPermaLink="false">56506@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;Thanks for getting back to me. I understand that validation errors have classes assigned to them, but if you have a look at the HTML below you'll see what I mean. I need to position the text in the div. Without &#38;lt;p&#38;gt; or &#38;lt;span&#38;gt; tags I can only target the div not the text inside it.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div class=&#38;#39;gfield_description validation_message&#38;#39;&#38;gt;This field is required.&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I've been experimenting and I've added some HTML to the &#34;validation message&#34; box under the advanced tab of the form fields like this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;span class=&#38;quot;error_icon&#38;quot;&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;p&#38;gt;This field is required.&#38;lt;/p&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Now I can position the text and icon but I have to add it to every form field. Is there any other way I can do it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56499</link>
			<pubDate>Wed, 25 Apr 2012 10:18:28 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">56499@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You don't need any additional markup to target/style the validation message. You can easily do so with inheritance from the containing div. For example..&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[css]
body .gform_wrapper .gform_body .gform_fields .gfield_error .validation_message {
	padding-left: 20px !important;
	background-image: url(&#38;quot;http://games-ak.espn.go.com/s/minigames/i/trivia/alert_icon.png&#38;quot;);
	background-repeat: no-repeat;
	background-position: 0 9px
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;test screenshot: &#60;a href=&#34;http://bit.ly/IcyIyH&#34; rel=&#34;nofollow&#34;&#62;http://bit.ly/IcyIyH&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can find out more about how to properly target the form elements for styling (with samples) in the documentation here.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56486</link>
			<pubDate>Wed, 25 Apr 2012 08:57:43 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">56486@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;All validation errors have classes assigned to them that you can hook into via CSS.&#60;br /&#62;
One should be .validation_error and the other should be .validation_message.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Robsticles on "Text positioning in validation error div"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/text-positioning-in-validation-error-div#post-56483</link>
			<pubDate>Wed, 25 Apr 2012 07:25:12 +0000</pubDate>
			<dc:creator>Robsticles</dc:creator>
			<guid isPermaLink="false">56483@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've noticed that the validation error text is wrapped in div tags but nothing else. Is it possible to wrap the text in &#38;lt;p&#38;gt; or &#38;lt;span&#38;gt; tags so I can position the text? I'm trying to add a small warning icon on the left side of the text.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
