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.


pwaddles

113 posts

Master Geek


#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
manhinli
2483 posts

Uber Geek

Trusted

  #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!

itxtme
1774 posts

Uber Geek

Subscriber

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

iframes ->

 


 
 
 
 


manhinli
2483 posts

Uber Geek

Trusted

  #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!

nate
6405 posts

Uber Geek

Moderator
Trusted
Lifetime subscriber

  #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.

pwaddles

113 posts

Master Geek


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

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

itxtme
1774 posts

Uber Geek

Subscriber

  #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!


RedJungle
Phil Gale
1108 posts

Uber Geek

Trusted
Red Jungle
Subscriber

#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

 
 
 
 


38894
80 posts

Master Geek


  #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




News »

Amazon introduces new Echo devices
Posted 25-Sep-2020 11:56


Mad Catz introduces new S.T.R.I.K.E. 13 Mechanical Gaming Keyboard
Posted 25-Sep-2020 11:34


Vodafone NZ upgrades international submarine network
Posted 25-Sep-2020 09:09


Jabra announces wireless noise-cancelling airbuds, upgrade existing model
Posted 24-Sep-2020 14:43


Nokia 3.4 to be available in New Zealand
Posted 24-Sep-2020 14:34


HP announces new HP ENVY laptops aimed at content creators
Posted 24-Sep-2020 14:02


Logitech introduce MX Anywhere 3
Posted 21-Sep-2020 21:17


Countdown unveils contactless shopping with new Scan&Go tech
Posted 21-Sep-2020 09:48


HP unveils new innovations for businesses adapting to rapidly evolving workstyles and workforces
Posted 17-Sep-2020 15:36


GoPro launches new HERO9 Black camera
Posted 17-Sep-2020 09:45


Telecommunications industry launches new 5G Facts website
Posted 17-Sep-2020 07:56


New Zealand ranks 3rd in world in GSMA index
Posted 15-Sep-2020 10:13


Trend Micro Security Suite adds web monitoring to prevent identity theft
Posted 14-Sep-2020 15:37


NVIDIA to acquire Arm for US$ 40 billion
Posted 14-Sep-2020 12:27


Epson launches its next gen A3+ colour EcoTank multi-function printer
Posted 10-Sep-2020 16:08



Geekzone Live »

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


Support Geekzone »

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.