You may specify a Class to the <body> of your Template and then use simple CSS for your task
<body class="body_<?php echo PAGE_ID;?>">
and then in CSS
.myClass {padding: 10px;}
.body_10 .myClass {padding: 5px;}
There is no way to do this from editor directly.
Regards,
Stefek