# Targeting a Column in a Section Via CSS

**URL:** <https://community.hubspot.com/t/targeting-a-column-in-a-section-via-css/96204>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [December 15, 2023, 3:09pm UTC](https://community.hubspot.com/t/targeting-a-column-in-a-section-via-css/96204 "2023-12-15T15:09:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSkane](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rskane/32/200930_2.png) [@RSkane](https://community.hubspot.com/u/RSkane)\
**Post date:** [December 15, 2023, 3:09pm UTC](https://community.hubspot.com/t/targeting-a-column-in-a-section-via-css/96204/1 "2023-12-15T15:09:00Z")

</div>

I’m new to the Hubspot DND templates.

I’m working on a two-column section template and that section has the class .blueleft In the CSS file, I’m trying to target the first column which has a span of 6 in a 12 column setup. (so, two columns total - both have a span of 6).

I’ve tried .blueleft: first-child and .blueleft:nth-child(n) and other various attempts but am not able to get it to work to only target that first column out of two.

I am unable to add a class to the column since that parameter is not recognized.

**Update:** This selector worked: .blueleft .dnd-column:nth-child(odd)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 15, 2023, 8:39pm UTC](https://community.hubspot.com/t/targeting-a-column-in-a-section-via-css/96204/2 "2023-12-15T20:39:36Z")

</div>

Hey, @RSkane Thank you so much for taking the time to update your post with what worked! Have a fantastic weekend 🙌 — Jaycee

---

<div class="post-metadata">

**Author:** ![RSkane](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rskane/32/200930_2.png) [@RSkane](https://community.hubspot.com/u/RSkane)\
**Post date:** [December 15, 2023, 9:56pm UTC](https://community.hubspot.com/t/targeting-a-column-in-a-section-via-css/96204/3 "2023-12-15T21:56:21Z")

</div>

Thanks, [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) ! I accepted your response as the solution so it could show as solved. hahaha

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [December 15, 2023, 11:29pm UTC](https://community.hubspot.com/t/targeting-a-column-in-a-section-via-css/96204/4 "2023-12-15T23:29:34Z")

</div>

Fixed it. Now you’re the winner! — Jaycee
