Forum Moderators: open

Message Too Old, No Replies

Iframe preferences

Adding style to standard look

         

dubinsf

8:22 pm on Nov 5, 2005 (gmt 0)



Just wondering the best way to change the standard look of the scroll bar and the generic box that the frame sits in.

encyclo

3:26 am on Nov 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums dubinsf!

If you want to alter the border width (or remove the border) around an

iframe
, you can use the
frameborder
attribute. I tend to always set the frame border to zero:

<iframe src="/frame.html" width="150" height="140" [b]frameborder="0"[/b]>alternative content here</iframe>

For changing the scrollbars, as far as I know that can't be done from within the parent document - it is the document held within the iframe which owns the scrollbars. You can use the IE-only scrollbar CSS controls within the framed document, but obviously they would have no effect in alternative browsers.