#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0

    Unhappy CSS And HTML Help


    Hi all,

    I been designing a web site in Dreamweaver 2004 I have added
    a Layer which I did by clicking Draw Layer,

    Well anyways I have added a scroll bar too it and now I want to change the color of the scroll bar

    the CSS which I have tryed is:

    <style type="text/css">
    <!--
    body {
    background-color: #0095FF;
    body {scrollbar-base-color:#6CC0FF;}


    }
    .style1 {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 10px;
    body {scrollbar-base-color:#6CC0FF;}
    }

    and the Layer code is:

    <div id="Layer1" style="position:absolute; left:65px; top:145px; width:700px; height:298px; z-index:1; overflow: scroll; visibility: visible;" class="style1">

    thanks alot
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Rhondda Cynon Taff, Wales
    Posts
    172
    Rep Power
    12
    hi,


    it's simple: the part with the #0095FF you change that to a hex colour or a colour by remiving the # if you want a true colour such as red or, you change the numbres and leave the # for a hex colour.

    btw, to make your code more efficient use this:


    body {
    background-color: #0095FF;
    scrollbar-base-color:#6CC0FF;
    }

    or, the full scrollbar code that allows you to access all the scrollbar proporties:

    <STYLE TYPE="TEXT/CSS">
    <!--
    body
    {
    scrollbar-face-color:#C7DCEF;
    scrollbar-highlight-color:#003399;
    scrollbar-shadow-color:#000000;
    scrollbar-3dlight-color:#003399;
    scrollbar-arrow-color:#003399;
    scrollbar-track-color:#C7DCEF;
    scrollbar-darkshadow-color:#000000;
    }
    //-->
    </STYLE>

    hope that helped.
    Ryan Jones (RyanJ)
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0
    Thanks alot mate it works perfect.

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Rhondda Cynon Taff, Wales
    Posts
    172
    Rep Power
    12
    thanks,


    i'm glad to be of help....
    Ryan Jones (RyanJ)

IMN logo majestic logo threadwatch logo seochat tools logo