Everything posted by Buffmin
-
setting a color "class" in css
That did it. Thank you very much!
-
setting a color "class" in css
Ooops. Maybe I am missing something. Probably in the way I worded it. Suppose I have a couple of div id's (probably the wrong term!). I want to have the back-ground colors of both divs to be the color that I assign for "OurColor" at the top of this css page. ------------------- #header{ background-color:OurColor; } #footer{ background-color:OurColor; } ------------------- Both of these are on my external css sheet, so how do I declare "OurColor" at the top of this css sheet? Sorry if I am grasping this slow! Craig
-
setting a color "class" in css
Perfect! Thank you very much!
-
setting a color "class" in css
- Hello, this is Buffmin.
Hello all. I am from Buffalo, NY. I lost my job at a manufacturing facility after 28 years, so time for a change. I am currectly attending a community college to get my 2-year degree in web design, and then my plan is to work from home. I have a pssion for web design, and love school, and am trying to learn as much as I can from the experts!- setting a color "class" in css
Excellent! Thank you. Could you please just give an example of how I would set the variable at the top of my css sheet? For instance.... If I have this "function" in my css sheet.... #topdiv{ background-color:OurColor; } How would I assign a hex value to "OurColor" at the top of the css sheet? I really appreciate your help. Craig- setting a color "class" in css
Hello, I am new here. I am getting familiar with html and css,but have a question. In my css code, I will use the same (hex)color, many times. If, in the future, I would like to change that color, I do not want to have to change it 100 times. Can I say.... create a color "variable", and give it a name, and just refer to that "variable" element every time, so if I want to change it in the future, I only need to change the hex code for that.... "variable"? I appreciate your help. PS: I am not trying to call the color from my html code, I just do not want to use the same hex code 20 times on my css sheet. - Hello, this is Buffmin.