changing colors using color.css

You made an own skin or theme for phpMyFAQ. You can share it here with others!

Moderator: Thorsten

Post Reply
R0CKY
Posts: 62
Joined: Mon May 19, 2008 9:18 pm

changing colors using color.css

Post 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?
Rocky.
Tdvhake
Posts: 8
Joined: Sat Aug 22, 2009 9:11 pm

Re: changing colors using color.css

Post 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>
R0CKY
Posts: 62
Joined: Mon May 19, 2008 9:18 pm

Re: changing colors using color.css

Post by R0CKY »

That's it, thank you.
Rocky.
R0CKY
Posts: 62
Joined: Mon May 19, 2008 9:18 pm

Re: changing colors using color.css

Post 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.
Rocky.
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Re: changing colors using color.css

Post 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.
kind regards
Markus
- phpMyFAQ 2.6.2
R0CKY
Posts: 62
Joined: Mon May 19, 2008 9:18 pm

Re: changing colors using color.css

Post 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.
Rocky.
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Re: changing colors using color.css

Post 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.
kind regards
Markus
- phpMyFAQ 2.6.2
R0CKY
Posts: 62
Joined: Mon May 19, 2008 9:18 pm

Re: changing colors using color.css

Post by R0CKY »

HI

I set my resolution to 1280x1024 and couldn't see anything wrong....?
Rocky.
Markus-SSI
Posts: 35
Joined: Thu Aug 20, 2009 8:34 am

Re: changing colors using color.css

Post 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 :)
kind regards
Markus
- phpMyFAQ 2.6.2
Post Reply