#2622·plantuml

Cannot add padding through CSS

Author: TheJanzapCreated Mar 25, 2026Updated Sep 7, 2026
Labelstriageongoingfor-claude

Describe the bug I want to add padding to my diagram. When using skinparam Padding 10, it works as expected. But when using CSS, it does nothing.

To Reproduce

plantuml
@startuml
' Works
skinparam padding 10

' Does nothing
<style>
  element {
     Padding: 10
 }
</style>

Bob -> Alice : hello
@enduml

https://www.plantuml.com/plantuml/uml/BOsn3i8m34HtVyLjJ0XOgwegY0zWOmx4eb6Tk8hDW13_JYguyUwUtcWUgZ-pq0PNhREHpQaieOQC9SIOoWE7FRNrh6mewbEhg3T_2Gy4i73cudWJrbn-JBT2-52_-n_ff3Ti1nmbtHaT9XPH6hd4vlu2

Expected behavior The CSS styling should show the same behavior as styling through skinparam

Screenshots

Image