coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: follett on July 09, 2009, 01:52:53 PM

Title: [Closed]: How to change background color of anycontent.php ?
Post by: follett on July 09, 2009, 01:52:53 PM
I'd like to change background color of text in my anycontent.php
If i copy to anycontent <body background="images/back.jpg">, it does not help.
I tried to modify style.css file but then almost whole site change color, not anycontent.php only.
I am using "mesh" theme.

Please, help me.

Title: Re: How to change background color of anycontent.php ?
Post by: Joachim Müller on July 09, 2009, 02:20:36 PM
You can't use the body tag, as it's not a separate page, but just some snippet integrated into the index file output of coppermine.
Therefor, use any container in anycontent that you can think of, e.g. a div or a table and assign a background color to that container, using HTML and or CSS. There is nothing special in this aspect when it comes to anycontent.
Examples:<div style="background-color:green;">
    Hello world
</div>
<table>
    <tr>
        <td style="background-color:green;">
            Hello world
        </td>
    </tr>
</table>


Yours is a very basic question - usually, when people ask questions that way, the answer is even easier: you probably even shouldn't be using anycontent.php. In most cases, editing themes/yourtheme/template.html should do the trick.
If you need details: post a link to your gallery and explain what you want to accomplish.
Please understand that we can not teach you HTML/CSS basics.
Title: Re: How to change background color of anycontent.php ?
Post by: Joachim Müller on August 08, 2009, 01:39:06 PM
Don't answer to threads by follett, he's banned - see http://forum.coppermine-gallery.net/index.php/topic,61075.msg302920.html#msg302920