There's no way for a child template to modify its parent/master. But here's a sneaky way to do this...
Use the TemplateId. This will always be the id of the child template, not any of its parents/masters.
Then, add that macro to your master template's <div> tag as part of the class. Remember to prefix it with some text because classes can't start with digits.
I use the following...
Code:
<div id="Main" class="Template<?UMBRACO_GETITEM field="template"/>">
<?UMBRACO_TEMPLATE_LOAD_CHILD/>
</div>
In my css I have entries like:
Code:
.Template1045 p {
margin: 0;
padding: 0 17px 8px 12px;
}
cheers,
doug.
MVP 2007-2009 - Official Umbraco Trainer for North America -
Percipient Studios