vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A way to hide content at the top of an IFRAME with css maybe? (https://vborg.vbsupport.ru/showthread.php?t=251148)

BirdOPrey5 09-25-2010 07:49 PM

A way to hide content at the top of an IFRAME with css maybe?
 
Curious if anyone knows how I can do this... Let's say I have a page in an iframe and the iframe content is 500px x 500px in size... I know if I set the iframe size to 500 x 400, no scroll bars, and overflow = hidden the bottom 100 pixels will be hidden from view.

My question is does anyone know if there's a way to hide the top 100 pixels instead? Sort of display from the bottom up? Could that be possible with css styles maybe?

kh99 09-25-2010 07:57 PM

I don't really have any idea what would work, but did you try something like:

position:relative;
top:-100px;

BirdOPrey5 09-25-2010 08:36 PM

That's close... the bottom is in the correct spot but the "overflow" on the top isn't hidden, it just comes in front of the other elements on the page. Weird... maybe I should check it in other browsers- I'm using Chrome.

kh99 09-25-2010 08:44 PM

Maybe try adding a z-index:-1 ?

BirdOPrey5 09-25-2010 09:05 PM

Actually check that, it's working great... I had to put the style tag into a DIV tag around the IFRAME instead of the IFRAME itself. :)

Thanks.


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00999 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete