setthing background image for category list row setthing background image for category list row
 

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]

Main Menu

setthing background image for category list row

Started by Fking, November 20, 2004, 05:54:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fking

// 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

kegobeer

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.

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Fking

there is set just a colour for background
how i can set image for background via css?

Fking

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;
}

tGriff

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!