The following VF page entitled TemplatePage looks fine when opened:
<apex:page>
<head>
<style>
.mainDiv { ... }
</style>
</head>
<div class="mainDiv">...</div>
</apex:page>
The following page does not look correct (styles are ignored):
<apex:page>
<apex:composition template="TemplatePage"/>
</apex:page>
Why are template styles gone and how can I preserve the styles?