|
Post by coldstone on Sept 5, 2006 14:12:07 GMT -5
Question: How can I change the background color of the comment box?
Answer: You will probably want to do this with CSS.
This code will change all the input boxes and text boxes on a site:
input { background-color: #D8E8FF; border: 1px solid #40679E; } textarea { background-color: #D8E8FF; border: 1px solid #40679E; }
While:
.foo { background-color: #D8E8FF; border: 1px solid #40679E; }
Would change the color of any element that used class 'foo', such as:
<textarea cols="45" name="newcommentbody" rows="10" class="foo">
Discussion: There are a variety of reasons for using CSS (maybe against). CSS is nice in that you can easily make a change and have your entire site updated with it (rather than digging through lines and lines of website).
The easiest thing is to link to the style sheet (have an external file 'mystyle.css'), however, even if you include the style definition at the top of each page, it is still easier to change than looking at every line of each file.
CSS is easiest to integrate into GreyMatter as a custom template or link to the file in the Header template (just be sure to include the template on every page you want styled).
-- This is a sample Gm Cookbook recipe. Does this format work for everyone? I know its a simpler issue, but I just wanted to demonstrate the format.
|
|