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!

1586 posts

Uber Geek
+1 received by user: 258

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!

6314 posts

Uber Geek
+1 received by user: 380

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?

1586 posts

Uber Geek
+1 received by user: 258

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:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



Geekzone Live »

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



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.