Page 1 of 1

RGB format

PostPosted: Thu May 27, 2004 2:40 pm
by yippee2000
So I tried to change the background color for one of my galleries. It says you can type in the color name ("blue" for e.g.) or else type in the number using RGB format. So I went to one of those HTML color sites, found a color I liked, and typed the code into the field on the Edit This Gallery Page. I typed in "22DF66" or whatever it was. Was I supposed to type in something more, like maybe "#22DF66" or "RGB22DF66"? Why isn't it working? Why isn't the background color on that gallery changing?

Thanks!

Color

PostPosted: Thu May 27, 2004 4:30 pm
by robert
Format is either.....

background-color: #22DF66;

or

background-color: rgb(34, 223, 102);

I find it convenient to use the color picker in Adobe PS. It will give the color code in both formats!

Have fun!

Robert

PostPosted: Thu May 27, 2004 5:27 pm
by srijith
AS r53lanc mentioned, you need to specify it as "#22DF66;"

You *should not* miss out the '#'

OK....

PostPosted: Thu May 27, 2004 9:11 pm
by yippee2000
and do I specifically also need to add the semicolon (;) at the end as well, as you did?

Tx.

PostPosted: Fri May 28, 2004 6:56 am
by srijith
If you have some more code for that class, yes you need to, otherwise you can omit it.

example:
Code: Select all
p {
background-color: #22DF66;    <---- ; here since there is a code line that follows
font-size:10pt  <--- no ; here since this is the last code line for the 'p' class
}


However, since an extra semicolon will not harm in any way, it is always a best practise to add it anyway.

PostPosted: Fri May 28, 2004 1:48 pm
by alangrant
I think this thread has strayed off the point a little. The replies are talking about CSS. However the original post is about using the "Background Color" field in the "Edit Gallery" page - not CSS.

It doesn't seem to matter if you include the # or not, but I think you do need to choose the "no style sheet" option. If you use a style sheet it will override the text and background colour in the "Edit Gallery" settings.

As a general point, using style sheets will give you much more control over the appearance of your pages.