How do I change the background color?

11 replies
I have now, a WP theme with a gray header background color.

If I want to change the bkgnd of the header only to a bright blue, what do I have to do?

I looked at the css file and I was confused. Everywhere there was a color, the was a 3 digit with a # sign in front, ie #fff

I'm familiar with hex codes with 6 digits.

JD
#background #change #color
  • Profile picture of the author jasonmorgan
    #fff and #ffffff = white

    #000000 = black

    #666666 = grey

    here ya go CSS Color Chart
    Signature

    I'm all about that bass.

    {{ DiscussionBoard.errors[2897290].message }}
    • Profile picture of the author dawnbreaker
      Originally Posted by jasonmorgan View Post

      #fff and #ffffff = white

      #000000 = black

      #666666 = grey

      here ya go CSS Color Chart

      All you need to do is to change the hex to the colors you want... But if you want to change your dashboard color...(bright blue)

      Go to users and click you account... then change it to bright blue colors.
      {{ DiscussionBoard.errors[2897321].message }}
    • Profile picture of the author JD_Sanders
      Originally Posted by jasonmorgan View Post

      #fff and #ffffff = white

      #000000 = black

      #666666 = grey

      here ya go CSS Color Chart
      So what 3 digits =Blue?
      {{ DiscussionBoard.errors[2897328].message }}
      • Profile picture of the author dawnbreaker
        Originally Posted by JD_Sanders View Post

        So what 3 digits =Blue?

        Try to search for the color (bright blue) you want... Then you can use either 3 hex or 6... I think even its 3 or 6 hex... They were just the same.
        {{ DiscussionBoard.errors[2897343].message }}
  • Profile picture of the author Chris Thompson
    Put in a regular 6 digit code and you will be fine. Not sure why you didn't just try this on your own.
    {{ DiscussionBoard.errors[2897339].message }}
    • Profile picture of the author JD_Sanders
      Originally Posted by Chris Thompson View Post

      Put in a regular 6 digit code and you will be fine. Not sure why you didn't just try this on your own.
      Cuz I'm a chicken.

      But you're right! I used the 6 digit and it worked fine.

      Many thanks.

      JD
      {{ DiscussionBoard.errors[2897355].message }}
  • Profile picture of the author jasonmorgan
    So what 3 digits =Blue?
    no idea.

    I always use 6 digit hex code. I suspect you can get away with 3 if all digits/letters are the same... #fff and #ffffff

    While 3 digit hex code works, it strikes me as lazy and inconsistent programming.
    Signature

    I'm all about that bass.

    {{ DiscussionBoard.errors[2897362].message }}
    • Profile picture of the author CDarklock
      Originally Posted by jasonmorgan View Post

      While 3 digit hex code works, it strikes me as lazy and inconsistent programming.
      Section 4.3.6 of the CSS2 standard covers this; it's to remove dependencies on the colour depth of the display.

      What's lazy and inconsistent is that you didn't even bother to look it up.
      Signature
      "The Golden Town is the Golden Town no longer. They have sold their pillars for brass and their temples for money, they have made coins out of their golden doors. It is become a dark town full of trouble, there is no ease in its streets, beauty has left it and the old songs are gone." - Lord Dunsany, The Messengers
      {{ DiscussionBoard.errors[2897951].message }}
  • {{ DiscussionBoard.errors[2897365].message }}
    • Profile picture of the author dawnbreaker

      JD

      Try the link quoted above... And don't worry if you put on your script/codes of a 3 or 6 hex of the color codes.... Just give them a try... You won't lost a thing but instead you will gain skills...
      {{ DiscussionBoard.errors[2897378].message }}
      • Profile picture of the author chrisscott
        Doesn't matter for those colors which has same hex value in pair of 2, whether to use 3 or 6 digits.

        For example for white 6 hex is FFFFFF you can use it's 3 hex values by picking first value of each pair that is FFF.

        But for FDFEFF their first 2 pairs are not same to each other so whether to use FFF by picking first values from pairs of DEF by picking last values from pairs.

        It's pretty same to white but not 100% white.

        So in conclusion you may use 3 digit hex color codes but you have a little less choice in shades.
        {{ DiscussionBoard.errors[2897763].message }}

Trending Topics