Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Closed]: How to change background color of anycontent.php ?  (Read 6622 times)

0 Members and 1 Guest are viewing this topic.

follett

  • Coppermine newbie
  • Offline Offline
  • Posts: 11

I'd like to change background color of text in my anycontent.php
If i copy to anycontent
Code: [Select]
<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.

« Last Edit: August 08, 2009, 01:39:20 pm by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change background color of anycontent.php ?
« Reply #1 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:
Code: [Select]
<div style="background-color:green;">
    Hello world
</div>
Code: [Select]
<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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to change background color of anycontent.php ?
« Reply #2 on: August 08, 2009, 01:39:06 pm »

Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.