Tags

, ,

I have a Silverlight web part  that would like to be included in 2007 environment. I used pageview web part to have the 2010 page address.

All work well except there was scroll bar. After a few hours finding, you need to add a css in your 2010 page to remove the default “#s4-workspace” overflow settings.

 

Below is the css file I used to hid the ribbon and left menus that will only display the Silverlight web part.

<style type="text/css">
/*--Hide Quick Launch --*/
#s4-leftpanel{
display:none
}

#s4-ribbonrow,#s4-titlerow
{
display:none
}
.s4-ca{
margin-left:0px
}

#s4-workspace {
   overflow-y: hidden !important;
   overflow-x: hidden !important;
}
</style>

					
Advertisements