<?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: Better way to style credit card fields?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields</link>
		<description>Gravity Support Forums Topic: Better way to style credit card fields?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:40:28 +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/better-way-to-style-credit-card-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Better way to style credit card fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields#post-171259</link>
			<pubDate>Thu, 14 Mar 2013 11:22:29 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">171259@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hmdev on "Better way to style credit card fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields#post-170527</link>
			<pubDate>Wed, 13 Mar 2013 22:49:29 +0000</pubDate>
			<dc:creator>hmdev</dc:creator>
			<guid isPermaLink="false">170527@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry for the long delay. It was the plugin. It was a custom script used by a friend to connect to a proprietary payment system; not an official add-on. All is fixed. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Better way to style credit card fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields#post-148204</link>
			<pubDate>Sun, 17 Feb 2013 01:54:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148204@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please let us know what add-on it turned out to be, if that was the conflict.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hmdev on "Better way to style credit card fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields#post-146696</link>
			<pubDate>Wed, 13 Feb 2013 16:46:42 +0000</pubDate>
			<dc:creator>hmdev</dc:creator>
			<guid isPermaLink="false">146696@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm seeing now that this may have been caused by an add-on altering the default credit card fields. I'll swing back here if that's not the case.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Better way to style credit card fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields#post-146693</link>
			<pubDate>Wed, 13 Feb 2013 16:43:24 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">146693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not seeing any inline styles when I view the source of one my test forms on my dev site. &#60;a href=&#34;https://www.evernote.com/shard/s212/sh/71cc3c94-ed7d-46fb-b64b-6635501fb110/14c81a6cdd82ffd98c33e9cbadd37b65&#34; rel=&#34;nofollow&#34;&#62;Screenshot&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also - what exactly are you trying to do to the credit card field in terms of styling? There are plenty of classes and IDs here to hook into. Do you have a link to your form?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hmdev on "Better way to style credit card fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/better-way-to-style-credit-card-fields#post-146690</link>
			<pubDate>Wed, 13 Feb 2013 16:29:21 +0000</pubDate>
			<dc:creator>hmdev</dc:creator>
			<guid isPermaLink="false">146690@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was surprised to find that the credit card field built into Gravity Forms is extraordinarily hard to style, for two reasons. First, there are inline styles - with the !important declaration, no less - hard coded into some of the input elements. Second, there is no class name on the expiration date container or on the individual month/year select elements within it.&#60;/p&#62;
&#60;p&#62;Because of this, I had to hook into the credit card field input with 'gform_field_content'. Then I had to write a horrendous little script which uses DOMDocument to strip out style tags and add classes to some of the elements. It was either this or do it with JavaScript, which I did not want to do.&#60;/p&#62;
&#60;p&#62;Here is that script: &#60;a href=&#34;http://pastebin.com/vmBLKgWu&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/vmBLKgWu&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm pasting this here because I really hope that I'm missing something, and that there is a better way to do what I'm attempting. Please let me know if this is not the case.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
