I came across a post Label-based Post Customization which showed how to design each blog post based on the label it was posted. That is every post with the same label will automatically have the same design.
But the problem is with that I am unable to customize outside the post content(main wrapper) because the 'label' is defined only as the post content area. I like to have different color of the header and other outer wrapper for my labels.
I will give the code I used
replace the second occurrence of <data:post.body/>
(between span attribute) with this
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>
<!-- Only using the last label -->
<div expr:class='"label" + data:label.name'>
<p> <data:post.body/> </p>
</div>
</b:if>
</b:loop>
<b:else/>
<div class='labelNone'> <p><data:post.body/></p> </div>
</b:if>
Then In the style portion of your template, apply a style by specifying the div class. Here's an example that will put a background image for all posts with label "tech":
<style type='text/css'>
div.labeltech {
background-image: url("http://yoursite.com/Wallpaper-Widescreen.jpg");
background-repeat: no-repeat;
background-position: bottom right;
display: block;
}
</style>
It would be very nice if the knowledgeable members at stack overflow would help me since I am only a student.