logo

Colored scroll bar for browser

Posted by sasi rekha in Other Issues

Thursday, November 20, 2008 6:06:52 AM

how to get required color scroll bar for my browser

Biography
sasi has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

re

Web star replied to sasi rekha

EggHeadCafe's human moderators scored this post for our messageboard contest.

Thursday, November 20, 2008 6:26:40 AM

use css for color scroll bar

<style type="text/css">
BODY{
scrollbar-face-color:#DFFFBF;
scrollbar-shadow-color:green;
}
</style>


Biography
Web has not submitted biographical details.

Site Rank:  16th place - Current Winnings:  $0.00

Reply Reply Using Power Editor
mv ark

Colored scroll bar

mv ark replied to sasi rekha

EggHeadCafe's human moderators scored this post for our messageboard contest.

Thursday, November 20, 2008 6:29:10 AM

To get a colored scroll bar for a webpage, you can adapt this CSS class -

body {scrollbar-3dlight-color:#ffd700;
scrollbar-arrow-color:#ff0;
scrollbar-base-color:#ff6347;
scrollbar-darkshadow-color:#ffa500;
scrollbar-face-color:#008080;
scrollbar-highlight-color:#ff69b4;
scrollbar-shadow-color:#f0f}

For more info & example, check this link - http://websitetips.com/articles/css/scrollbars/

Note that these may not be supported on all browsers.

If you need a colored scrollbar for your complete browser & not just for specific pages, you could try this Firefox addon -
https://addons.mozilla.org/en-US/firefox/addon/3699


Biography
M.V. 'Anil' Radhakrishna is a seasoned developer and a Microsoft MVP (ASP/ASP.NET). He blogs his little discoveries and Web development tips, tricks and trivia quite regularly. You can find some of his unusual code samples & snippets at his Code Gallery.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

i used this code..but giving errors

sasi rekha replied to Web star

Thursday, November 20, 2008 7:33:37 AM

i used this code in masterpagse.i wrote this code before </hear>tag
but giving error saying that these are not a valid CSS property names

Biography
sasi has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

yes

Web star replied to sasi rekha

Thursday, November 20, 2008 8:00:48 AM

u write </hear>tag

this is not valid

</head> is valid one


Biography
Web has not submitted biographical details.

Site Rank:  16th place - Current Winnings:  $0.00

Reply Reply Using Power Editor

before </head> tag

sasi rekha replied to Web star

Thursday, November 20, 2008 8:29:51 AM

sorry Aravind i typed worngly..i placed the below code
<style type="text/css">
BODY{
scrollbar-face-color:#DFFFBF;
scrollbar-shadow-color:green;
}
</style>
before </head>tag..but saying these are not valid CSS properties..wat is the solution

Biography
sasi has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

reply

Binny ch replied to sasi rekha

Thursday, November 20, 2008 11:25:16 AM

 Use the following before the </HEAD>

<style type="text/css">
html
    {
        scrollbar-face-color:#DFFFBF;
        scrollbar-shadow-color:green;
    }
</style>

 The Entire code would look like:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPages_MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <title></title>
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
html
    {
        scrollbar-face-color:#DFFFBF;
        scrollbar-shadow-color:green;
    }
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
       
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html


Biography
Binny has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

reply

Binny ch replied to sasi rekha

Thursday, November 20, 2008 11:26:23 AM

The CSS like this in head tag would work perfectly for IE but in firfox it will not work.
<style type="text/css">
html
    {
        scrollbar-face-color:#DFFFBF;
        scrollbar-shadow-color:green;
    }
 Firefox does not support this, and it is unlikely to change as this is a deliberate design decision by the firefox development team. There is no workaround, unfortunately.

Biography
Binny has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor

Try this to get diifernt coloures scrollbar

Binny ch replied to sasi rekha

Thursday, November 20, 2008 11:28:58 AM

Insert the following in your HTML page to change the scrollbars:

<style>
body {
scrollbar-base-color: #0025CC;
scrollbar-arrow-color: #00E81B;
scrollbar-3dlight-color: #C64C00;
scrollbar-darkshadow-color: #00A889;
scrollbar-face-color: #00ED5E;
scrollbar-highlight-color: #DD00C0;
scrollbar-shadow-color: #050066;
scrollbar-track-color: #093800;
}
</style>


Biography
Binny has not submitted biographical details.

Site Rank:  Not applicable - Current Winnings:  $0.00

Reply Reply Using Power Editor
 

Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum








  $1000    Adam Houldsworth - $173  |  Jonathan VH - $154  |  Kirtan Patel - $116  |  Mr. Khan - $99  |  F Cali - $94  |  more Neado  |  Free Icons  |  Privacy  |   (c) 2010