Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

HTML flooding container div and overlapping layers, Please help! Urgent

views
     
TSyun2
post Oct 28 2009, 11:46 PM, updated 17y ago

New Member
*
Junior Member
45 posts

Joined: Mar 2009


Dear all sifus,

Right now, I'm helping my mum with her website, all is well, until she asked me to add a drop down list for her navigation. The problem is, my navigation is nested under a div which I call header. Whenever I implemented the drop down list (through searches online on how to create one, I've tried both CSS and javascript btw), whenever the list expands out of the containing div, it is layered at the bottom of the remaining content and I am not able to click on the links which lie outside the div. I've also tried Z-index, which didn't work and did a search, apparently it doesn't work in IE7? Is there any fix for this?

Thanks!
puaka_astro
post Oct 29 2009, 09:04 AM

Casual
***
Junior Member
331 posts

Joined: Jun 2007
From: Isketambola


you can use jquery plugin bgiframe http://plugins.jquery.com/project/bgiframe

Read the docs : http://docs.jquery.com/Plugins/bgiframe

pretty simple. should solve you IE overlay issue
TSyun2
post Oct 29 2009, 10:07 AM

New Member
*
Junior Member
45 posts

Joined: Mar 2009


Hi puaka_astro,
Thanks for the reply! I haven't used JQuery before and the description of how to use it is quite ambiguous for a newbie like me sweat.gif,
so where should I plug in this code for it to work?

QUOTE
The usage is simple. Just call bgiframe on a jQuery collection of elements.
$('.fix-z-index').bgiframe();
puaka_astro
post Oct 29 2009, 10:16 AM

Casual
***
Junior Member
331 posts

Joined: Jun 2007
From: Isketambola


1. include jquery lib(download) here http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js

load the script , the bgiframe - you only need 1 file see the script tag below , link here http://plugins.jquery.com/files/bgiframe_2.1.1.zip
CODE

<html>
<head>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.bgiframe.min.js"></script>
<script>
    $('#YOUR-DIV-ID-HERE').bgiframe();
</script>
</head>


see.. easy eh ?


Added on October 29, 2009, 10:19 amNote :

1. $('#divid') - means your div id is "divid", just change to to you div id, dont forget the "#"

2. $('.divclass') - means, you use class name assigned to your div, use this if you need to have bgiframe on multiple div, just assign a class name to that div and use it here

This post has been edited by puaka_astro: Oct 29 2009, 10:19 AM
TSyun2
post Oct 29 2009, 11:50 PM

New Member
*
Junior Member
45 posts

Joined: Mar 2009


Hi puaka_astro,

I did exactly what you told me to, but unfortunately it didn't work for me cry.gif No idea what went wrong there..
in the bgiframe zip file, there are 3 js scripts right? Is there any difference if I extract all 3 or if I only extract this jquery.bgiframe.min.js file? Or do I have to extract all stuff from there? sweat.gif


Added on October 29, 2009, 11:53 pmAnother question I would like to ask is, will this bgiframe script work to position my drop down menu on top of a video content as well?

This post has been edited by yun2: Oct 29 2009, 11:53 PM
puaka_astro
post Oct 30 2009, 12:47 AM

Casual
***
Junior Member
331 posts

Joined: Jun 2007
From: Isketambola


Dude, just attach you css and html here so we can try and fix it. For the bgiframe like i said in previous post, you only need 1 file, as for now lets just ignore the other files, concentrate on your main reason, to fix layout issue on IE.

I haven;t had the time to test it over a video, but i did test it on some html elements, mostly on select box and divs. anyway post you CSS,you drop down script and HTML and point out which div that cause the problem.
M1X
post Oct 30 2009, 09:28 AM

Look at all my stars!!
*******
Senior Member
2,334 posts

Joined: May 2007
From: Kuching


Actually this is fully applicable with just XHTML and CSS. I got a tutorial I saved in my pendrive:




Attached File(s)
Attached File  CSS_Pop_Up_Menu___HTML_Tutorials_files.zip ( 114.27k ) Number of downloads: 9
TSyun2
post Oct 30 2009, 02:43 PM

New Member
*
Junior Member
45 posts

Joined: Mar 2009


QUOTE(puaka_astro @ Oct 30 2009, 12:47 AM)
Dude, just attach you css and html here so we can try and fix it. For the bgiframe like i said in previous post, you only need 1 file, as for now lets just ignore the other files, concentrate on your main reason, to fix layout issue on IE.

I haven;t had the time to test it over a video, but i did test it on some html elements, mostly on select box and divs. anyway post you CSS,you drop down script and HTML and point out which div that cause the problem.
*
Hi, sorry if I have made you frustrated with my problem here sad.gif
Here, I tried it again today but it still didn't work. I have attached a zip file of my html and css.


Added on October 30, 2009, 2:45 pmM1X, I've tried yours as well, the problem doesn't lie with creating drop down menu though. It's about having to click it outside my div.. But I appreciate your contribution smile.gif

This post has been edited by yun2: Oct 30 2009, 02:45 PM
puaka_astro
post Oct 30 2009, 02:51 PM

Casual
***
Junior Member
331 posts

Joined: Jun 2007
From: Isketambola


did you forgot the file ? i didn' see any attachment lol
TSyun2
post Oct 30 2009, 02:55 PM

New Member
*
Junior Member
45 posts

Joined: Mar 2009


Oh oops! I didn't realise the upload failed. I put it in winrar before that doh.gif


Attached File(s)
Attached File  Website.zip ( 215.53k ) Number of downloads: 8
puaka_astro
post Oct 30 2009, 03:26 PM

Casual
***
Junior Member
331 posts

Joined: Jun 2007
From: Isketambola


Dude, i've fix your problem.. you dont need bgiframe for that.. made added z-index to you <li> (see the css #navigation li)

1. added param wmode="opaque" to flash video(this one is from google), see if its ok.

p/s : tested on chrome,firefox,ie7 and ie8


Added on October 30, 2009, 3:26 pmdamn, something wrong with my keyboard.. always missing letter "r" lol

This post has been edited by puaka_astro: Oct 30 2009, 03:26 PM


Attached File(s)
Attached File  Copy_of_Index.html ( 3.01k ) Number of downloads: 13
Attached File  copystyle.css ( 1.89k ) Number of downloads: 11
TSyun2
post Oct 30 2009, 03:58 PM

New Member
*
Junior Member
45 posts

Joined: Mar 2009


QUOTE(puaka_astro @ Oct 30 2009, 03:26 PM)
Dude, i've fix your problem.. you dont need bgiframe for that.. made added z-index to you <li> (see the css #navigation li)

1. added param wmode="opaque" to flash video(this one is from google), see if its ok.

p/s : tested on chrome,firefox,ie7 and ie8


Added on October 30, 2009, 3:26 pmdamn, something wrong with my keyboard.. always missing letter "r" lol
*
Hi puaka_astro,
Omg, that seriously did it! Thanks!! I thought I've tried the z-index as well but didn't work.. Maybe I placed it at the wrong element sweat.gif Anyways the param wmode opaque works well too, thank you so much laugh.gif !!

 

Change to:
| Lo-Fi Version
0.0202sec    0.25    6 queries    GZIP Disabled
Time is now: 7th December 2025 - 08:59 PM