Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Silverlight
Hi guy's ,
i have created one silverlight app and and i want to set z-index property in style of html object tag in aspx page which display silverlight xamp file.
 
please help me.
thanx in advance
Posted 6-Aug-12 22:31pm
Edited 7-Aug-12 18:23pm
v2
Comments
Christian Amado at 7-Aug-12 9:37am
   
Can you rebuild your question? I don't understand it.
Kenneth Haugland at 8-Aug-12 0:34am
   
Silverlight resides in a html wrapper, and I dont know why that z-index direction sould bother you, html content could be laid directly over a Silverlight browser. The other way around is more difficult though.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Add the below code in head section of your aspx page
<style type="text/css">
object
{
position:absolute;
left:0px;
top:0px;
z-index:-1;
}
</style>
 
Tip:
The zIndex property sets or returns the stack order of a positioned element.
An element with greater stack order (0) is always in front of another element with lower stack order (-1).
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 8 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid