HighDots Forums  

color of iframe scrollbar

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss color of iframe scrollbar in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
btime webforumsuser@macromedia.com
 
Posts: n/a

Default color of iframe scrollbar - 01-01-2004 , 03:05 AM






Hi all......

I want to make iframe, but I can't change the color of the scrollbar...is there something wrong ?

the code of loaded page :


<style>
body {
scrollbar-face-color: #300;
scrollbar-shadow-color: #600;
scrollbar-highlight-color: #600;
scrollbar-3dlight-color: #600;
scrollbar-darkshadow-color: #600;
scrollbar-track-color: #300;
scrollbar-arrow-color: pink;
color: #999900;
}
</style>




the code of main page :


<body>
<IFRAME NAME="main" SRC="load.htm" ALIGN="center" frameborder="no" scrolling="yes" HEIGHT="300" WIDTH="400" HSPACE="0" VSPACE="0"></IFRAME>



</body>




many thanks



Reply With Quote
  #2  
Old   
~Angela, TMM
 
Posts: n/a

Default Re: color of iframe scrollbar - 01-01-2004 , 08:27 AM






Hello btime,

You're very close! Change the style to html instead of body like so:

html{
scrollbar-face-color: #300;
scrollbar-shadow-color: #600;
scrollbar-highlight-color: #600;
scrollbar-3dlight-color: #600;
scrollbar-darkshadow-color: #600;
scrollbar-track-color: #300;
scrollbar-arrow-color: pink;
color: #999900;
}
</style>

My guess is you're using a DTD that is preventing the expected display.
Changing it to html overcomes this problem.

Example here: http://www.dwmommy.com/ng/iFrame.asp I used
http://www.dwmommy.com/ng/load.htm as the iFrame page. iFrame.asp contains
the same iframe tag you posted. If I change my <style> tag in load.htm to
match yours, the colored scrollbar doesn't appear.

Good Luck,
~Angela

--
Angela C. Buraglia, Founder:
~FAQs, Tutorials & Resources~ http://www.DreamweaverFAQ.com
~My Extensions~ http://www.dwfaq.com/go.asp?ID=AngelaX10
DWfaq Support Newsgroup: news://support.dwfaq.com/support

Co-Author with Joseph Lowery, Dreamweaver MX 2004 Killer Tips:
http://www.dwkillertips.com

Remove the CAPS in my E-mail to reply off list.


"btime" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi all......

I want to make iframe, but I can't change the color of the scrollbar...is
there something wrong ?

the code of loaded page :


style
body {
scrollbar-face-color: #300;
scrollbar-shadow-color: #600;
scrollbar-highlight-color: #600;
scrollbar-3dlight-color: #600;
scrollbar-darkshadow-color: #600;
scrollbar-track-color: #300;
scrollbar-arrow-color: pink;
color: #999900;
}
/style




the code of main page :


body
IFRAME NAME="main" SRC="load.htm" ALIGN="center" frameborder="no"
scrolling="yes" HEIGHT="300" WIDTH="400" HSPACE="0" VSPACE="0"></IFRAME



/body




many thanks





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.