Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




113 posts

Master Geek


Topic # 25898 5-Sep-2008 14:21
Send private message

Hi everyone, Im a bit of a noob when it comes to CSS menus, but I've got something that looks nice with some background images and dropdown items. Check it out at www.lens.co.nz

Im having a problem though, I have a big dirty iFrame under my CSS menu, which displays the main content of the webpage, and sometimes it needs to display pdf files, when it displays these pdfs my CSS menu seems to get 'stuck' behind it (very obvious if your using opera). I've had a good play with z-index's but cant seem to sort it out.

Any help would be greatly appreciated.

Hadley

Create new topic
2483 posts

Uber Geek
+1 received by user: 4

Trusted

  Reply # 162482 5-Sep-2008 14:36
Send private message

pwaddles: Hi everyone, Im a bit of a noob when it comes to CSS menus, but I've got something that looks nice with some background images and dropdown items. Check it out at www.lens.co.nz



Im having a problem though, I have a big dirty iFrame under my CSS menu, which displays the main content of the webpage, and sometimes it needs to display pdf files, when it displays these pdfs my CSS menu seems to get 'stuck' behind it (very obvious if your using opera). I've had a good play with z-index's but cant seem to sort it out.



Any help would be greatly appreciated.



Hadley

Unfortunately, plugins usually behave this way in many circumstances, and I don't think this can be solved in any way.

Maybe reposition your iframe lower, and then make a horizontal menu (or try any other way to workaround this)




Find me on Twitter!

I posted 1, 2 x 10^3 times!

1632 posts

Uber Geek
+1 received by user: 277

Subscriber

  Reply # 162529 5-Sep-2008 16:56
Send private message

iframes ->

 


 
 
 
 


2483 posts

Uber Geek
+1 received by user: 4

Trusted

  Reply # 162530 5-Sep-2008 16:59
Send private message

itxtme:

iframes ->

...


I (and many people) strongly discourage the use of iframes. They're old. But sometimes they're still useful. So I usually make up workarounds wherever possible - just use your head! Laughing




Find me on Twitter!

I posted 1, 2 x 10^3 times!

6329 posts

Uber Geek
+1 received by user: 391

Moderator
Trusted
Lifetime subscriber

  Reply # 162799 7-Sep-2008 15:37
Send private message

itxtme, that's an awesome reply.

I don't think there is a way to do this.  Back in the days of using frames, to accomplish slide out menus over another frame, I had a Javascript hack that would display the menu inside the content frame, while being triggered from the menu frame.

If the iFrame is loading a PDF document, there would be no way for HTML to displayed within - I think you'd be best to rethink your implementation.



113 posts

Master Geek


  Reply # 162855 7-Sep-2008 17:02
Send private message

whats the alternative to an iframe? and would using such alternative help with my issue?

1632 posts

Uber Geek
+1 received by user: 277

Subscriber

  Reply # 162886 7-Sep-2008 17:48
Send private message

pwaddles: whats the alternative to an iframe? and would using such alternative help with my issue?

The alternative to Iframes is to have the website design based on a structure that changes every time the link is pressed.  So instead of having the iframe load the alternative page the whole page reloads content and all.

How you would do this with PDF's is by embeding them (use specific HTML code) http://www.planetpdf.com/mainpage.asp?webpageid=1682

 

Iframes are difficult to handle and should only be used in exceptional cirumstances!


Phil Gale
1107 posts

Uber Geek
+1 received by user: 44

Trusted
Red Jungle
Subscriber

Reply # 162949 7-Sep-2008 22:21
Send private message

Hi pwaddles, I can't say I've ever attempted this personally - but as others have said I very much doubt you'll find any way to overlay html elements overtop the acrobat plugin. This is not really a CSS issue as much a quirk of using a plugin to display content.

With that said - Is it really necissary to embed PDF's inside the iFrame container? that strikes me as a horrible thing to do to your visitors.

Could those links not open the PDF in a new browser window? that would be a much more friendly approach - even more so if the links can be clearly marked as PDF. There's nothing worse than clicking on a link only to find yourself downloading a 12MB PDF document and waiting while Acrobat makes a cup of coffee or whatever the hell it does that takes forever and eats up most of your memory.

Best of luck anyway.




Red Jungle: we make fantastic software

RSS  Twitter  Facebook  Skype

80 posts

Master Geek


  Reply # 166039 21-Sep-2008 14:49
Send private message

Have you thought about using a pdf include statement to include the pdfs instead of an iframe? Not sure how well this would work without going right into it and investigating all possibilities but it's an idea of the top of my head.

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Geekzone Live »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.