Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2011
    Posts
    154
    Thanks
    5
    Thanked 0 Times in 0 Posts

    java applet under div?

    Hello I'm having trouble getting my java applet to appear underneath a fixed div? I've been playing with the z-index but can't get it to work. The applet always remains on top of all the other divs no matter what I try. The applet is placed inside <object type="application/x-java-applet">. I asked this in css forum but no answer there, so I'll try here. So how can I accomplish this?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,978
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    This hasn't a thing to do with Java. Its HTML/CSS.
    I don't know why you would want to put a div overtop of an applet though, that just doesn't make sense. Set the display to none if you don't want it to show.

  • #3
    Regular Coder
    Join Date
    Nov 2011
    Posts
    154
    Thanks
    5
    Thanked 0 Times in 0 Posts
    moved...
    Last edited by resin; 05-18-2012 at 03:45 AM.

  • #4
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,662
    Thanks
    41
    Thanked 189 Times in 188 Posts
    Quote Originally Posted by resin View Post
    With all your posts I'm surprised you've never encountered this issue before.
    considering that Java is a server-side language, and not even necessarily used in web pages (almost always not unless making a JSP or doing what you are doing) it is in fact not surprising he has not seen this...

    what's more suprising is that you did not find this (which is the first hit in google "embed java applet in html") and then this which describes in detail by w3.org the object tag and then this which is also from w3.org describing the z-index and how it works.

    you are talking two different things.... sit down at a table with 5 sheets of paper. label one 'menu' and one 'java applet'; pretend that is you html page

    now take them all and place them one on top of the other. that is z index. placing them spread out in some order (this is what you want yes?)- that is CSS positioning. this thread needs moved to html/css

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •