iframe scrollbars, help....arg! |
iframe scrollbars, help....arg! |
![]()
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 44 Joined: Sep 2004 Member No: 52,448 ![]() |
I was wondering if there was a way to define the scrollbar colors on an iframe!
I tries defining them in the css using like: body { scrollbar-highlight-color: #000; } and etc... and i even tried iframe { scrollbar-highlight-color: #000; } I tried looking everywhere for how to do this but i cant find it anywhere!!! Someone help! |
|
|
![]() |
![]()
Post
#2
|
|
![]() wanderlust personified. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 7,515 Joined: Jan 2004 Member No: 797 ![]() |
Hmmm... I don't believe there is a way to do that. There are alternative ways to edit the iframe scrollbars, as previous posters have pointed out.
I assume your pages are using includes since your site is written in php and I assume that each of your pages are using a common header .php file. And that within this header file, you've either linked a stylesheet or have your stylesheet code in there. Well either way, just edit the stylesheet to change the the scrollbar colors within the "body" attribute. Because all your pages are linked to the same stylesheet through their common header file, the changes will be made across all pages and there you go, problem solved. And you only had to edit one file. One question tho, since you've coded your site in PHP, why WOULD you want to use iframes if you could just dynamically include the content? That would be more efficient than using iframes, which from what I've seen, you've already done. The World Wide Web Consortium (W3C) discourages the use of iframes anyway as because of issues with browser compatability, accessibility and other things that would just be inconvenient for certain internet users. I'm sure you could care less, but it's just a tip. -edit- I was just browsing your site and now I see what you're doing with the iframes. I would suggest you dynamically include the different content but place it within a div, setting the scrollbar to auto and applying a width and a height as you did with the iframe. Then all you would have to do is edit the scrollbar colors of that div. It would look exactly like what you have now, but would be more efficient and load quicker than if you used iframes. I guess that would just mean additional work, since you've already acheived the look that you wanted. This is just for future reference. |
|
|
![]() ![]() |