Grey Matter Forums
« How to change the background of the comment box. »

Welcome Guest. Please Login or Register.
May 21, 2013, 10:46am



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Support :: Cookbook :: How to change the background of the comment box.
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: How to change the background of the comment box. (Read 6,621 times)
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 How to change the background of the comment box.
« Thread Started on Sept 5, 2006, 2:12pm »

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:
Code:
input {
background-color: #D8E8FF;
border: 1px solid #40679E;
}
textarea {
background-color: #D8E8FF;
border: 1px solid #40679E;
}


While:
Code:
.foo {
background-color: #D8E8FF;
border: 1px solid #40679E;
}


Would change the color of any element that used class 'foo', such as:
Code:
<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.
« Last Edit: Sept 5, 2006, 2:13pm by coldstone »Link to Post - Back to Top  IP: Logged
xiaojunznz2
New Member
*
member is offline





Joined: May 2013
Gender: Male
Posts: 3
Karma: 0
 Re: How to change the background of the comment bo
« Reply #1 Today at 5:11am »

You can surf the Internet access to relevant data and information, and discuss with friends, maybe can help you, wish you good luck.

__________________
I have a dream,it is a fantasy forever.
buy diablo 3 Gold|RS Gold|Diablo 3 Gold|WOW Gold
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile