# Label for radio buttons inline

**URL:** <https://community.gravityforms.com/t/label-for-radio-buttons-inline/20355>\
**Category:** Get Help\
**Tags:** css, radio-buttons\
**Created:** [July 22, 2026, 2:12pm UTC](https://community.gravityforms.com/t/label-for-radio-buttons-inline/20355 "2026-07-22T14:12:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user63c99ad67ee37860](https://avatars.discourse-cdn.com/v4/letter/u/439d5e/32.png) [@user63c99ad67ee37860](https://community.gravityforms.com/u/user63c99ad67ee37860)\
**Post date:** [July 22, 2026, 2:12pm UTC](https://community.gravityforms.com/t/label-for-radio-buttons-inline/20355/1 "2026-07-22T14:12:20Z")

</div>

I have two radio buttons inline and the label is on top. I would like the label to be to the left inline so everything is on one line. I would also like to style the radio buttons to be larger, have a bigger stroke and be a different color.

---

<div class="post-metadata">

**Author:** ![faisalahammad](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/faisalahammad/32/13948_2.png) [@faisalahammad](https://community.gravityforms.com/u/faisalahammad)\
**Post date:** [July 24, 2026, 8:59am UTC](https://community.gravityforms.com/t/label-for-radio-buttons-inline/20355/2 "2026-07-24T08:59:18Z")

</div>

Hi Gus,

To make the radio button labels appear inline with the radio buttons, you can add the following CSS to your site. You can do this through your theme’s Additional CSS section (`Appearance > Customize > Additional CSS`) or in your child theme’s stylesheet.

Replace FORMID in the code below with your actual form ID. You can find your form ID by looking at the form shortcode or when you edit the form, the ID will be shown in the browser address bar.

**Here is the CSS you need:**

```css
/* Make radio button choices display horizontally with label inline */
.gform_wrapper_FORMID .gfield_radio li {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5em;
}

/* Ensure label flows next to the radio, not below */
.gform_wrapper_FORMID .gfield_radio .gchoice label {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
}

```

Replace FORMID with your form ID number:

FORMID is just a placeholder. For example, if your form ID is 5, you would change it to 5 and the code would look like .gform\_wrapper\_5 .gfield\_radio li.

To find your form ID, go to Forms in your WordPress dashboard, hover over the form name, and look at the link. The number at the end of the URL is your form ID.

Give it a try, and let me know how that goes! 😄

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [August 23, 2026, 9:00am UTC](https://community.gravityforms.com/t/label-for-radio-buttons-inline/20355/3 "2026-08-23T09:00:12Z")

</div>

Closed on August 23, 2026, 9:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
