FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Iframe Problem

 


jsabelino
Good day
how can i remove the horizontal scroll bar using iframe?

thanks
roninmedia
The scrollbar can be removed via by adding the follwing to your stylesheet.

Code:
#FrameID {
        width:insert width here;
        height:insert height here;
   overflow-x:hidden;
   overflow-y:auto;
}
jsabelino
i have no idea of stylesheet.where can i find it?
i have this script

<P ALIGN=center><IFRAME SRC="http://r....../1/new/" marginheight="2" marginwidth="2" width="365" height="200" scrolling="yes" allowtransparency="no" style="border: #2D4063 1px"</IFRAME></P>

thanks for your help
vahsi000
you can still use roninmedia's script, just use the "style" tag to implement the css code:

<P ALIGN=center><IFRAME SRC="http://r....../1/new/" style="overflow-x:hidden; overflow-y:auto;" marginheight="2" marginwidth="2" width="365" height="200" scrolling="yes" allowtransparency="no" style="border: #2D4063 1px"</IFRAME></P>

This method isn't usually seen as the best practice since it won't be compatible with older browsers, but if you don't care about older browsers then tryout this code, to my knowledge it should work or if it doesn't say so and i'll try to come up with something else.
jabapyth
to use a style sheet (generally good practice) make a file "default.css", put your style stuff in it, and add
Code:
<link href="default.css" rel="stylesheet" type="text/css" />

to whichever html page you want the css to apply to.
jsabelino
thanks vahsi000

you got the right scripts..thank you so much..
jsabelino
your right @firefox the scroll bar was removed but when i use explorer it doesnt.i use the latest explorer 7.0.5450.4..any other script??
thanks
vahsi000
jsabelino wrote:
your right @firefox the scroll bar was removed but when i use explorer it doesnt.i use the latest explorer 7.0.5450.4..any other script??
thanks


Can you show us the page? Like if you have breaks after a sentence that might be forcing internet explorer to have a horizontal bar (i'm not 100% sure of this) make sure that the only place there are <p> and <br> codes in the page you're trying to view is in between paragraphs, otherwise as i said if you have it at the end of sentences it might cause a horizontal bar. Also check the code with internet explorer 6 to make sure it's not a glitch with IE7 since it it's still being developed.

I might be of more assistance if you can supply me with a link.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.