# How to create rounded and filled record nodes?

**URL:** <https://forum.graphviz.org/t/how-to-create-rounded-and-filled-record-nodes/1608>\
**Category:** Help\
**Created:** [May 8, 2023, 3:40am UTC](https://forum.graphviz.org/t/how-to-create-rounded-and-filled-record-nodes/1608 "2023-05-08T03:40:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![halloleo](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/halloleo/32/1066_2.png) [@halloleo](https://forum.graphviz.org/u/halloleo)\
**Post date:** [May 8, 2023, 3:40am UTC](https://forum.graphviz.org/t/how-to-create-rounded-and-filled-record-nodes/1608/1 "2023-05-08T03:40:11Z")

</div>

In the following simple graph

```auto
digraph rounded_record {
    rankdir=LR
    node [shape=record
          style=filled
          style=rounded
          ]
    A [label = <Oben | Unten>]
    B [label = <Arriba | Debajo>]
    A -> B
}

```

I get only the rounded shape:

![rounded-records_rounded](https://global.discourse-cdn.com/graphviz/original/2X/4/46e8a7888933b87b26e50da092894648b0f29d02.png)

Or if I remove the `style=rounded` I get _only_ the filled shape:

![rounded-records_filled](https://global.discourse-cdn.com/graphviz/original/2X/8/8ba63636250809ab6a173f8c6b08beba1fce4657.png)

I guess the `style` attribute can hold only _one_ term…

But can I create rounded and filled record nodes?

---

<div class="post-metadata">

**Author:** ![steveroush](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@steveroush](https://forum.graphviz.org/u/steveroush)\
**Post date:** [May 8, 2023, 1:20pm UTC](https://forum.graphviz.org/t/how-to-create-rounded-and-filled-record-nodes/1608/2 "2023-05-08T13:20:57Z")

</div>

Graphviz is a little different in how it sets attribute values, it uses a “last-one-in” scheme instead of “use-them-all”. But not worries, just combine the values in a comma or whitespace string `style="filled,rounded"`. Documentation here [Node Shapes | Graphviz](https://graphviz.org/doc/info/shapes.html#styles-for-nodes)

```auto
digraph rounded_record {
    rankdir=LR
    node [shape=record
          style="filled,rounded" fillcolor=lightblue
          ]
    A [label = <Oben | Unten>]
    B [label = <Arriba | Debajo>]
    A -> B
}

```

Giving:  
 ![filledAndRounded1](https://global.discourse-cdn.com/graphviz/original/2X/2/24fcbe36e774df2594b2067c0e19f3b525b63ef9.png)

---

<div class="post-metadata">

**Author:** ![halloleo](https://sea2.discourse-cdn.com/graphviz/user_avatar/forum.graphviz.org/halloleo/32/1066_2.png) [@halloleo](https://forum.graphviz.org/u/halloleo)\
**Post date:** [May 9, 2023, 12:33am UTC](https://forum.graphviz.org/t/how-to-create-rounded-and-filled-record-nodes/1608/3 "2023-05-09T00:33:52Z")

</div>

Thanks so much @steveroush ! I didn’t think of this very logical way to provide two values to an attribute. You made my day. 😄
