I am using an iframe to display pages that I load from a menu on the parent page. I don't have the ability to modify the pages I'm linked to. On one of the pages, there is navigation that I don't want my end users to have access to. My best solution to prevent access to this is to position the page below the navigation on loading, and lock the iframe's scrolling.
However, since I load multiple pages, I need to have this positioning change depending on the link from the menu that the users select.
In my link, I include this:
function repositionIframe(iframeId, iframeMarginHeight)
'marginwidth' and 'marginheight' feel more like 'padding' to me, and it can be tricky to manipulate them with good cross-browser results. I'd probably recommend setting those attributes to 0 and rely on the standard CSS margin property to style an <iframe>.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)