1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Getting Windows Colors

Discussion in 'Internet Explorer & Microsoft Edge' started by Buff, 2003/03/20.

Thread Status:
Not open for further replies.
  1. 2003/03/20
    Buff

    Buff Inactive Thread Starter

    Joined:
    2003/03/18
    Messages:
    44
    Likes Received:
    0
    This was as good as any place to ask this.

    Is there a script or another way to get the default dialog color
    (and/or the color used as a background color for internet explorer
    at the top where the buttone File Edit etc. are) for a html file.

    I know how to do it for a program on the user's disk. but if they
    are accessing my web site can i determine this color and use it
    as a background color for say a table. i.e. it would change from
    computer to computer depending on what the user has set up.
     
    Buff,
    #1
  2. 2003/03/25
    Daizy

    Daizy Inactive

    Joined:
    2002/02/19
    Messages:
    2,965
    Likes Received:
    0
    Hey Buff
    Sorry your question slipped by....and I'm not going to be a heap of help either. But I know that this place would be able to answer it in a jiffy?

    Daizy
     

  3. to hide this advert.

  4. 2003/03/27
    Buff

    Buff Inactive Thread Starter

    Joined:
    2003/03/18
    Messages:
    44
    Likes Received:
    0
    Thanks daizy. After playing around with and looking up tutorials
    for the CSS (cascading style sheets) that they suggested at the link you provided i was able to do exactly what I had asked -- get windows colors and use them in html coding. easier than I thought too.
    in head section
    <style type= "text/css ">
    then put what is to have the different colors here
    example
    p {color:ButtonText Background-color:ButtonFace}
    </style>
    then whenever you use whatever it will use the colors you specified.

    Instead of p you can use U (underline) UL (Unordered List)
    even table

    There's a whole range of default colors available whatever the
    user has set.
     
    Last edited: 2003/03/27
    Buff,
    #3
  5. 2003/03/27
    Daizy

    Daizy Inactive

    Joined:
    2002/02/19
    Messages:
    2,965
    Likes Received:
    0
    Hi again Buf
    So happy to hear you got it sorted. Thanks so much for taking the time to come back and tell us how.

    Daizy
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.