Click here to Skip to main content
11,481,404 members (64,415 online)
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 23:31pm
Edited 7-Aug-12 19: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
Web04 | 2.8.150520.1 | Last Updated 8 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100