<div> - Display attribute

Results 1 to 2 of 2

Thread: <div> - Display attribute

  1. #1
    Join Date
    Dec 1969

    Default <div> - Display attribute

    I&#039;m trying to show and hide a DIV layer using the display attribute (here&#039;s the exact coding ..<BR> &#060;div id="layer1" style="display:none; position:absolute; width:249px; height:92px; z-index:1; left: 268px; top: 185px"&#062; <BR>)<BR>with display set to &#039;none&#039; it&#039;s not showing up in the beginning but when I try to show up with display set to "" it&#039;s not showing up either,i guess it has to do something with that absolute positioning and zIndex attribute<BR>Can anyone please help me with this problem<BR>This is the exact code I&#039;m using in my Javascript<BR><BR> layer1.style.zIndex = 1<BR> layer1.style.display = "" <BR>and do I&#039;ve to use zOrder instead of zIndex to change the stack order<BR>In my case it&#039;s not giving any error but the layer is showing up beneath the current layer I guess <BR>Thanks.<BR><BR>

  2. #2
    Devioux Guest

    Default RE: <div> - Display attribute

    Did you try using visibility:hidden/visible instead of display?<BR>

Posting Permissions

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