# 【FormBridge】ラベルの背景色の変更方法について

**URL:** <https://community.cybozu.dev/t/topic/6060>\
**Category:** kintone 開発相談\
**Created:** [2022 年 6 月 13 日午前 9:04 UTC](https://community.cybozu.dev/t/topic/6060 "2022-06-13T09:04:35Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Legacy\_Account2229](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@Legacy\_Account2229](https://community.cybozu.dev/u/Legacy_Account2229)\
**Post date:** [2022 年 6 月 15 日午後 11:08 UTC](https://community.cybozu.dev/t/topic/6060/8 "2022-06-15T23:08:19Z")

</div>

ありがとうございます。

おっしゃる通り、div要素ですね。

rowに対して「:nth-of-type」で何行目か

その配下のdivに対して「:nth-of-type」で何番目かを指定することでできます。

```
/* 1行目の1番目のdiv */
.row:nth-of-type(1) div:nth-of-type(1) {
    background-color: #ff00ff;
}

/* 1行目の2番目のdiv */
.row:nth-of-type(1) div:nth-of-type(2) {
    background-color: #0000ff;
}

/* 2行目の1番目のdiv */
.row:nth-of-type(2) div:nth-of-type(1) {
    background-color: #00ffff;
}

```

---

_[View the full topic](https://community.cybozu.dev/t/topic/6060)._
