#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    7
    Rep Power
    0

    Help edit a css stylesheet


    ok the stylesheet contains this:
    BODY, TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    }

    and I need to add this into it

    BODY {
    scrollbar-face-color: #DEE3E7;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #DEE3E7;
    scrollbar-3dlight-color: #D1D7DC;
    scrollbar-arrow-color: #006699;
    scrollbar-track-color: #EFEFEF;
    scrollbar-darkshadow-color: #98AAB1;
    }

    Ok here's what I don't understand. The original stylesheet(used by a php script) contains lots of things at the top separated by commas. Does that mean that it will affect all of those things?
    So I have to do this?

    BODY
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    scrollbar-face-color: #DEE3E7;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #DEE3E7;
    scrollbar-3dlight-color: #D1D7DC;
    scrollbar-arrow-color: #006699;
    scrollbar-track-color: #EFEFEF;
    scrollbar-darkshadow-color: #98AAB1;
    }

    TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    }

    Sorry about the newbie question, but I gotta start some where.
  2. #2
  3. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    Yes, in your original stylesheet all (BODY, TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT) have the font attributes. In the second, you have removed BODY, so TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT should be defined as you have done. The BODY is correct now to, however, I think the BODY attributes should carry to the other tags -> but maybe not on older browsers -> so your method I think plays it safe.

    HTH

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    7
    Rep Power
    0
    It just doesn't seen to be working!
    I've checked and the css file is defenetly being used but adding those parametars doesn't have any affect on the scrollbar.
    Here's the full css file if that help any.

    BODY, TD, TR, P, UL, OL, LI, INPUT, SELECT, DL, DD, DT, FONT
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    }

    .PhorumBodyArea
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    width: 500px;
    }

    .PhorumListTable
    {
    border-style : solid;
    border-color : Black;
    border-width : 1px;
    }

    .PhorumListRow
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    height: 21px;
    }

    .PhorumListHeader
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size : 14px;
    font-weight : bold;
    height: 24px;
    }

    .PhorumForumTitle
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size : 24px;
    font-weight: bold;
    }

    .PhorumTableHeader
    {
    font-family: Verdana, Arial, Clean, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    }

    .PhorumNav
    {
    font-family: Geneva, Verdana, MS Sans Serif , Clean, sans-serif;
    font-size: 10px;
    }

    .PhorumNewFlag
    {
    font-family: Geneva, Verdana, MS Sans Serif , Clean, sans-serif;
    font-size: 10px;
    color: Red;
    }

    .PhorumMessage
    {
    font-family: Courier New, Geneva, Courier, Clean;
    font-size: 12px;
    }

    Anyone know what could be wrong?
    This is for phorum 3.4.5 BTW
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Location
    city of sin, state of the art
    Posts
    421
    Rep Power
    0
    jsut curious...what browser are you viewing it in?

    not sure if they all support colored scrollbars anyway

    other then that it looks fine

    good lucky and rock on!!
    "I hate quotations."
    -ralph waldo emerson-
  8. #5
  9. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    and scrollbar is in no part of w3.org's css standards
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    7
    Rep Power
    0
    I am using IE. While some other browsers don't support this, I'm possitive IE does. I used this before so I know it works.
  12. #7
  13. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    yeah, but the scrollbar is a part of the browser not the webpage.
    so there is no reason why you should want to alter it.
    and even in msie you can easily overrule the scrollbar settings that a webpage has set.
  14. #8
  15. Retired
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Finland
    Posts
    9,143
    Rep Power
    2493
    Coloring scrollbars only works in IE 5.5 I think, and as AKH said, it isn't W3 compliant.

    Just extra hassle for nothing really IMHO

    Cheers,
    Jamie

    >_ skiFFie ? | Twitter

    __________________

    Let the might of your compassion arise to bring a quick end
    to the flowing stream of the blood and tears .....
    Please hear my anguished words of truth.

    __________________
  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    7
    Rep Power
    0
    I suppose you're right, it's just that the default scrollbars always irritate me.

IMN logo majestic logo threadwatch logo seochat tools logo