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
@startuml
' Works
skinparam padding 10
' Does nothing
<style>
element {
Padding: 10
}
</style>
Bob -> Alice : hello
@endumlExpected behavior
The CSS styling should show the same behavior as styling through skinparam
Screenshots
Source: plantuml/plantuml