21 Sep 2009
08 Oct 2009
Link to this post
I created a Sitefinity Template that is associated with a masterpage and a stylesheet. On the masterpage, there is a ContentPlaceHolder named LeftSidebar. I am adding a usercontrol (.ascx page) to LeftSidebar that has a link to its own separate stylesheet that is called at the top of the page:
<link href="../../jQuery/css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
This works fine. The stylesheet associated with the template is applied for the entire site, and the stylesheet i manually declared on the usercontrol is applied on itself.
The problem is that if I drag a second usercontrol (even if it is the exact same one) to the LeftSidebar ContentPlaceholder, the style I linked above is only ever applied to the very first usercontrol - never any others. If I edit the page in SF and drag and drop the second control above the first control, it will gain the style linked above, and the control that was bumped down (that was previously styled appropriately) will lose its style.
Using FireBug, I noticed that the styles are indeed not being applied to the tags of the second control in the LeftSidebar.
Is there a way to apply my manually specified styles for all usercontrols in a ContentPlaceHolder?
Please let me know if i can help to better explain this situation. Any advice is greatly appreciated.