PDA

View Full Version : iframe properties


andrewsheldon98
08-20-2002, 02:20 PM
how can i change the frameborder color and scrollbar color for an iframe?

tommysphone
08-20-2002, 03:35 PM
Within the Iframe tag put the following code

bordercolor=#rrggbb
frameborder=1 for lines
frameborder=0 for no lines

As for the scroll bars. Color changing will only work with IE5.5+. Add something like this to your style sheet

scrollbar-face-color: #084A94;
scrollbar-base-color: #084A94;
scrollbar-shadow-color: #087A92;
scrollbar-highlight-color: #087A92;
scrollbar-3dlight-color: #445555;
scrollbar-darkshadow-color: #AAAAAA;
scrollbar-track-color: #084A94;
scrollbar-arrow-color: #FFFFFF;


Hope it helped

Nightfire
08-20-2002, 04:18 PM
Scrollbar colours work IE5.5+ :)

andrewsheldon98
08-20-2002, 05:12 PM
cheers tommysphone but your idea doesnt work

tommysphone
08-21-2002, 01:08 PM
Tell you what, post the code for the page and I'll have a play in my lunch break.

And yep, Nighfire, you are right :) IE5.5+

acrokos
08-21-2002, 03:48 PM
tommysphone....do your thing :thumbsup: where/how would you place the styles for the scrollbar settings for the following html code...

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>

<IFRAME NAME="IF1" SRC="http://www.yahoo.com/" WIDTH="600" HEIGHT="250" ALIGN="LEFT">
</FRAME>

</BODY>
</HTML>


Alex

Quiet Storm
08-21-2002, 06:57 PM
Won't work...

The page that is inside the iFRAME needs to have the Scroll-Bar-Color CSS code. You can't call it from outside the iFRAME. Yahoo.com doesn't have the CSS code you want.

If you have another of your pages in the iFRAME, just put the CSS on that page for it to work:
<IFRAME SRC="your-page.html"></IFRAME>

On "your-page.html":

<HTML>
<HEAD>

<STYLE>
body {
scrollbar-face-color: #084A94;
scrollbar-base-color: #084A94;
scrollbar-shadow-color: #087A92;
scrollbar-highlight-color: #087A92;
scrollbar-3dlight-color: #445555;
scrollbar-darkshadow-color: #AAAAAA;
scrollbar-track-color: #084A94;
scrollbar-arrow-color: #FFFFFF;
}
</STYLE>

</HEAD>

tommysphone
09-03-2002, 08:10 AM
acrokos, I am so sorry. My lunch break turned into a holiday :D

Great for me, bad for you :( as I didn't reply. I have been playing with the problem and I'm beat. I thought it could be done but I have failed. Quiet Storm is right. Any other page with his style tag will work fine in the iframe with the effects you want.

I appologise for giving false hope.

acrokos
09-03-2002, 03:24 PM
No problem --- Many thanks to all!:thumbsup: