Differentiate styles

Sep 12, 2007 at 7:34 AM
Hi Cristian,

I have a pagetype that renders as a ascx in a Zone, in fact it has two zones available.
And I want it to apply a different style according to what zone it's in.
Do you have an idea as how to accomplish this?

On a side note, love N2! I'm working with episerver but I just love the way you implement pagetypes!
Love the typesafety!

Regards,
Morten
Coordinator
Sep 12, 2007 at 6:13 PM
It sounds like you could accomplish this using CSS, e.g.:

html:
<div id="left"> ... stuff in the left zone... </div>
<div id="right"> ... stuff in the right zone .. </div>

css:
#left .myClass {border:solid 1px red;}
#right .myClass {border:solid 1px green;}

/Cristian
Sep 30, 2007 at 11:08 AM
Hi Cristian,
thank you for the obvios solution, I was thinking way to complicated :-)

//Morten