<?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: Centering a form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/centering-a-form</link>
		<description>Gravity Support Forums Topic: Centering a form</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 08:57:54 +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/centering-a-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Centering a form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/centering-a-form#post-34302</link>
			<pubDate>Fri, 02 Sep 2011 19:36:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34302@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Until the form is published we won't be able to see it.&#60;/p&#62;
&#60;p&#62;However, to center a form on the page, target the .gform_wrapper.  &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[css]
body .gform_wrapper {
    width:450px;
    margin:0 auto;
    background:yellow;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That will make it narrow and yellow as well, so remove those lines once you see what you are actually targeting.  The key here is the margin: top and bottom, zero, left and right, auto, which will center the div horizontally.&#60;/p&#62;
&#60;p&#62;You can find more examples of CSS targeting here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples#Form_Wrapper&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/CSS_Targeting_Samples#Form_Wrapper&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zerozendesign on "Centering a form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/centering-a-form#post-34268</link>
			<pubDate>Fri, 02 Sep 2011 16:30:12 +0000</pubDate>
			<dc:creator>zerozendesign</dc:creator>
			<guid isPermaLink="false">34268@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;I'm trying to center a form within the page. I am using the form within the easy pagination shortcode. You can have a look here. &#60;a href=&#34;http://clients.zerozendesign.com/galileo1/?page_id=299&#38;amp;preview=true&#34; rel=&#34;nofollow&#34;&#62;http://clients.zerozendesign.com/galileo1/?page_id=299&#38;amp;preview=true&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What CSS should I use to accomplish this? The code can be added to the header of the form to override default?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
