<?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: Target label by input type to vertically align label</title>
		<link>https://legacy.forums.gravityhelp.com/topic/target-label-by-input-type-to-vertically-align-label</link>
		<description>Gravity Support Forums Topic: Target label by input type to vertically align label</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:48:03 +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/target-label-by-input-type-to-vertically-align-label" rel="self" type="application/rss+xml" />

		<item>
			<title>Kevin Flahaut on "Target label by input type to vertically align label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/target-label-by-input-type-to-vertically-align-label#post-238313</link>
			<pubDate>Sun, 05 May 2013 09:38:58 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">238313@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Why not just set the label height for the .gfield_label class globally, then use CSS inheritance to reset/tweak the labels included in the checkbox and radio lists if need be? Here's an example of what I'm talking about.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[css]
label.gfield_label {
	color: red !important;
	background-color: #000;
}
ul.gfield_radio li label,
ul.gfield_checkbox li label  {
	color: green !important;
	font-weight:bold;
	background-color: yellow;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://i.imgur.com/7e3f7KW.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i.imgur.com/7e3f7KW.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You might need to go back and adjust the CSS spacing for the select elements as well but I'll be honest, those are a pain the butt to get just right anyhow because of differences in how the browsers render the control.&#60;/p&#62;
&#60;p&#62;beyond that, you might want to look at a jQuery solution to specifically target any labels that precede text inputs and manipulate the styles or to add an additional class.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Target label by input type to vertically align label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/target-label-by-input-type-to-vertically-align-label#post-237032</link>
			<pubDate>Sat, 04 May 2013 12:29:22 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">237032@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Another way would be to add a custom class to the 'CSS Class Name' found on the advanced tab of each field you want to align and then create a rule in your stylesheet for that custom class such as&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;.mycustomclass label.gfield_label {
    line-height: 32px;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Nick5a1 on "Target label by input type to vertically align label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/target-label-by-input-type-to-vertically-align-label#post-236897</link>
			<pubDate>Sat, 04 May 2013 10:37:13 +0000</pubDate>
			<dc:creator>Nick5a1</dc:creator>
			<guid isPermaLink="false">236897@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Steve,&#60;/p&#62;
&#60;p&#62;Thanks for your reply. I realise I can individually set the line height on each field, but I'm constantly creating new forms, including custom forms for every post, so I'm looking for a way to target all text type inputs and then not have to touch the css again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Steve Napierski on "Target label by input type to vertically align label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/target-label-by-input-type-to-vertically-align-label#post-236812</link>
			<pubDate>Sat, 04 May 2013 08:53:19 +0000</pubDate>
			<dc:creator>Steve Napierski</dc:creator>
			<guid isPermaLink="false">236812@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This CSS targets just the labels of the text-types in this form:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#field_1_1 label.gfield_label, #field_1_2 label.gfield_label, #field_1_7 label.gfield_label  {
line-height: 32px;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope this answers your question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nick5a1 on "Target label by input type to vertically align label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/target-label-by-input-type-to-vertically-align-label#post-235832</link>
			<pubDate>Fri, 03 May 2013 20:05:50 +0000</pubDate>
			<dc:creator>Nick5a1</dc:creator>
			<guid isPermaLink="false">235832@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've increased the font size of all of the text, email, url, tel, number etc inputs across all forms. Now that these text inputs are higher, when labels are left aligned, they are not vertically aligned. I can correct this by increasing the line height of the labels by targeting &#60;code&#62;.gform_wrapper .gfield_label&#60;/code&#62;. But this increases the line-height of all labels, including radio buttons and select inputs, which then makes them misaligned.&#60;/p&#62;
&#60;p&#62;How can I increase the line-height of the labels for &#60;u&#62;just&#60;/u&#62; the text type inputs?&#60;/p&#62;
&#60;p&#62;EDIT: Here's my &#60;a href=&#34;http://trialfacts.com/wp/new-trials-mailing-list/&#34; rel=&#34;nofollow&#34;&#62;form&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Or could there be another way to achieve the vertical label alignment?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
