<?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: Styling the Submit button</title>
		<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button</link>
		<description>Gravity Support Forums Topic: Styling the Submit button</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 14:51:39 +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/styling-the-submit-button" rel="self" type="application/rss+xml" />

		<item>
			<title>orangeapple on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-9501</link>
			<pubDate>Tue, 07 Sep 2010 10:07:26 +0000</pubDate>
			<dc:creator>orangeapple</dc:creator>
			<guid isPermaLink="false">9501@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Kevin, thanks again. I'll have to go the jQuery route if I want to apply multiple classes to a field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-9373</link>
			<pubDate>Fri, 03 Sep 2010 20:15:29 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">9373@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure if there's a filter to change the input itself.. I'll have to double check on that. You can usually effect changes with inheritance from the parent &#38;lt;li &#38;gt; element.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;li.mycustomclassname input {margin:0}
li.mycustomclassname select {margin:10px}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You could use the same method to target the field with jQuery if you really wanted to append a class name to the input itself... something like this..&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery(document).ready(function() {
 		jQuery(&#38;quot;li.mycustomclassname input&#38;quot;).addClass(&#38;quot;myinputclass&#38;quot;);
	});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or directly using the input id like this..&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery(document).ready(function() {
 		jQuery(&#38;quot;#input_1_4&#38;quot;).addClass(&#38;quot;myinputclass&#38;quot;);
	});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>orangeapple on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-9367</link>
			<pubDate>Fri, 03 Sep 2010 19:17:51 +0000</pubDate>
			<dc:creator>orangeapple</dc:creator>
			<guid isPermaLink="false">9367@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Kevin, thanks! I had found that and just wanted to put my vote in for custom classes on individual inputs.&#60;/p&#62;
&#60;p&#62;Your solution worked like a charm.&#60;/p&#62;
&#60;p&#62;Follow-up question:&#60;br /&#62;
What is the correct function calls to replace the class on a specific input? When creating the form you can enter a custom class, but that is added to the parent &#60;u&#62;li&#60;/u&#62; rather than the form field itself. &#60;/p&#62;
&#60;p&#62;example: I want to change this specific input in form ID 1&#60;br /&#62;
&#60;code&#62;&#38;lt;input name=&#38;quot;input_4&#38;quot; id=&#38;quot;input_1_4&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;&#38;quot; class=&#38;quot;large&#38;quot; tabindex=&#38;quot;1&#38;quot;&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-9330</link>
			<pubDate>Fri, 03 Sep 2010 09:46:42 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">9330@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can do this now using the &#34;gform_submit_button&#34; filter. Here's another topic with an example.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/styling-the-submit-button-1#post-7367&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/styling-the-submit-button-1#post-7367&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;We may add the capability to the admin in a later version, but you can use that filter to manipulate the submit button anyway you want. Just be sure to keep the &#34;id&#34; value on the button so it still works properly with conditional logic, etc.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>orangeapple on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-9329</link>
			<pubDate>Fri, 03 Sep 2010 09:26:02 +0000</pubDate>
			<dc:creator>orangeapple</dc:creator>
			<guid isPermaLink="false">9329@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1 vote for the ability to add a custom class (or multiple classes) to the submit button.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-1028</link>
			<pubDate>Tue, 20 Oct 2009 18:36:29 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">1028@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David,&#60;/p&#62;
&#60;p&#62;You should be able to do this now with a little CSS inheritance. The entire form is wrapped in a div with class &#34;gform_wrapper&#34; so you can target the individual elements inside there.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;.gform_wrapper input.button { color:#222 }&#60;/code&#62;&#60;br /&#62;
if you want to get a little more granular, the main submit button is in a div with the class &#34;gform_footer&#34; so you could use that to target the button if you preferred.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;.gform_footer input.button { padding:3px }&#60;/code&#62;&#60;br /&#62;
Let me know if that doesn't work for you for some reason.&#60;/p&#62;
&#60;p&#62;We can also look into adding a custom class to the button to make things even easier in the future. Thanks for the suggestion.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-1027</link>
			<pubDate>Tue, 20 Oct 2009 18:29:54 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">1027@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Could you add a custom class like gfsubmit or something so I can style it differently than my comment submit button and whatnot?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-1026</link>
			<pubDate>Tue, 20 Oct 2009 18:08:31 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">1026@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the suggestion. We decided to leave the button elements un-styled so they would just inherit the default browser button styles, or any the user might already have in place in the theme. &#60;/p&#62;
&#60;p&#62;We have discussed offering some additional styling options or form 'skins' if you will, but haven't implemented any of that to date. &#60;/p&#62;
&#60;p&#62;For now, here's the styles we used on the forum buttons. You can grab the background image for the button &#60;a href=&#34;http://dl.getdropbox.com/u/688846/gravityhelp/buttonbg.png&#34;&#62;here&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;input[type=submit], input[type=button] {
	background-color: #b1b1b1;
	border: 1px none #707070;
	color: #636363;
	font-weight:bold;
	text-shadow: 0px 1px 1px #fff;
	background-image:url(images/buttonbg.png);
	background-repeat:repeat-x;
	background-position:bottom;
	padding: 3px 4px;
	line-height: 14px;
	font-size: 13px;
	margin: 0;
	-moz-border-radius: 4px;
	-khtml-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You'll want to make sure the image path is correct for your application and you can format the CSS to your preference.&#60;/p&#62;
&#60;p&#62;Also, in case you're not aware of it, you can also create a form button graphic and apply it directly via the form settings in the admin.&#60;/p&#62;
&#60;p&#62;screenshot: &#60;a href=&#34;http://dl.getdropbox.com/u/688846/gravityhelp/screenshot_873.png&#34;&#62;form image button settings&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-1024</link>
			<pubDate>Tue, 20 Oct 2009 17:32:56 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">1024@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Once again, I just realized the form styles were being overwritten by the stylesheet of my theme, StudioPress Church.  Removing that still leaves the buttons sort of flat and it would be great to see styles like you use here in the forum.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Styling the Submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/styling-the-submit-button#post-1023</link>
			<pubDate>Tue, 20 Oct 2009 17:26:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">1023@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see you guys have styled the input buttons here.  Any chance of adding those styles to the download package?  The submit button styling in the stock form is a little flat.  Dressing that up a little would save me from having to style the buttons in my own stylesheet.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
