Page 1 of 1

changing colors using color.css

Posted: Tue Aug 25, 2009 10:44 pm
by R0CKY
v2.5.0

I have succesfully re-arranged the layout by changing template/index.tpl (http://www.ghostrecon.net/faq/index.php) however none of the changes I am making to color.css are being reflected in the site.

Am I missing something obvious? I am editing template/color.css to change background colors etc etc but there is nothing changing when I refresh the page.

Any ideas?

Re: changing colors using color.css

Posted: Tue Aug 25, 2009 11:23 pm
by Tdvhake
Insert the following line into the index.tpl

Code: Select all

    <style type="text/css" media="screen">@import url(template/colors.css);</style>

Re: changing colors using color.css

Posted: Wed Aug 26, 2009 9:31 am
by R0CKY
That's it, thank you.

Re: changing colors using color.css

Posted: Wed Aug 26, 2009 10:55 am
by R0CKY
I have a problem trying to change the background colour. In the previous version there was a main wrapper around the div containers that I could set to #000000 but now in v2.5.0 the wrapper styles seem to have gone.

The result looks like this.... http://www.ghostrecon.net/faq/index.php - there is grey areas showing, where I want the main body (748px wide) to all be black (like my previous version here) - is this possible?

Thank you.

Re: changing colors using color.css

Posted: Wed Aug 26, 2009 1:45 pm
by Markus-SSI
Set

Code: Select all

#content { background-color: black; max-width: 741px; margin: auto; }
to get a black background.
If you want to have it as high as your screen you must edit the height.

Re: changing colors using color.css

Posted: Wed Aug 26, 2009 2:34 pm
by R0CKY
Markus thank you very much for the reply, it worked!

I do not understand what you mean by this though.....
If you want to have it as high as your screen you must edit the height.

Re: changing colors using color.css

Posted: Fri Aug 28, 2009 12:10 pm
by Markus-SSI
R0CKY wrote:Markus thank you very much for the reply, it worked!

I do not understand what you mean by this though.....
If you want to have it as high as your screen you must edit the height.
With my screen resolution (1280x1024) #content is not filling 100% of the displayable height.

Re: changing colors using color.css

Posted: Fri Aug 28, 2009 5:50 pm
by R0CKY
HI

I set my resolution to 1280x1024 and couldn't see anything wrong....?

Re: changing colors using color.css

Posted: Mon Aug 31, 2009 7:32 am
by Markus-SSI
The black background is as high as the content of the page and not always filling the display, what I expected you to want it like :)