登录 | 注册 | FAQ
Anonymous

"float" is covering the drop-down menu

+ 发表回复

4 篇帖子 分页: 1 / 1


"float" is covering the drop-down menu

ingingkoh » 周四 9月 30, 2010 6:43 am

can anyone help me to solve out this problem? this is what have been coded

<div style="width:288px;font-family:arial,sans-serif;font-size:13px;float:left"><div><embed type="application/x-shockwave-flash" src="http://picasaweb.google.com/s/c/bin/slideshow.swf" width="230" height="153" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F109941902914439785976%3Falt%3Drss%26kind%3Dphoto%26access%3Dpublic%26psc%3DF%26q%26uname%3D109941902914439785976" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></div></div>

thanks!

附件

  1. Untitled.png (130.4 KiB) 被下载 3328 次

头像

ingingkoh

  • 帖子: 2
  • 注册: 周四 9月 30, 2010 6:29 am

Re: "float" is covering the drop-down menu

HTML.net » 周四 9月 30, 2010 7:51 am

Hi,

Try to put a z-index on the div:

<div style="z-index:1000;width:288px;font-family:arial,sans-serif;font-size:13px;float:left">

That should put it in front. Read more about z-index here: http://html.net/tutorials/css/lesson15.php

- Andreas, HTML.net
头像

HTML.net
Site Admin

  • 帖子: 1194
  • 注册: 周六 9月 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: "float" is covering the drop-down menu

ingingkoh » 周四 9月 30, 2010 8:21 am

still the same thing happened...
头像

ingingkoh

  • 帖子: 2
  • 注册: 周四 9月 30, 2010 6:29 am

Re: "float" is covering the drop-down menu

HTML.net » 周四 9月 30, 2010 8:45 am

Sorry. It was the other way around: You need to put a z-index on your drop-down menu (and remove it from the image). Or maybe you can solve it by setting the z-index on the image to "0":

<div style="z-index:0;width:288px;font-family:arial,sans-serif;font-size:13px;float:left">

Hope it makes sense.

- Andreas, HTML.net
头像

HTML.net
Site Admin

  • 帖子: 1194
  • 注册: 周六 9月 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.


+ 发表回复

分页: 1 / 1