forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: Fking on November 20, 2004, 05:54:26 pm

Title: setthing background image for category list row
Post by: Fking on November 20, 2004, 05:54:26 pm
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <tr>
                <td class="tableh1" width="80%"><b>{CATEGORY}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
        </tr>
<!-- END header -->

i want to set image background for the whole row
how
Title: Re: setthing background image for category list row
Post by: kegobeer on November 20, 2004, 06:27:08 pm
Add your CSS class to the style sheet.  Then change <tr> to <tr class="classname">.  Look in style.css for tableh1 to see how it's properly done.

Title: Re: setthing background image for category list row
Post by: Fking on November 20, 2004, 06:52:44 pm
there is set just a colour for background
how i can set image for background via css?
Title: Re: setthing background image for category list row
Post by: Fking on November 20, 2004, 07:03:49 pm
nevermind, i found it :>

just in case someone else needs it


.tableh1 {
        background-image:
url('http://domain.com/thepathtotheimage.gif');
background-repeat: repeat-x
        color : #FFFFFF;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;
}
Title: Re: setthing background image for category list row
Post by: tGriff on April 19, 2005, 08:45:20 am
I have a similar question - regarding the current theme I am modding a bit.
I want the category list table to match the rest of the theme a bit better. I am using singapore.
The main table is a simple grey background and I would like it to be the graphic layout that is part of the rest of the theme
The gallery is [url http://www.griffhome.com/photos] here.[/url]

When viewing the individual albums, the resulting table style is how I want to see the main table on the first gallery page. Also, the slideshow is the same bland grey - it would be cool to get the slideshow to also be the graphic backround. hmmm

It seems this is a very simple thing.... but after looking at the css... the php and the html template as well as the docs and faqs... I'm still looking :-) :o

Any help ? Thanks!