Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: setthing background image for category list row  (Read 3665 times)

0 Members and 1 Guest are viewing this topic.

Fking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
setthing background image for category list row
« 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
« Last Edit: November 20, 2004, 07:20:41 pm by TranzNDance »
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: setthing background image for category list row
« Reply #1 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.

Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: setthing background image for category list row
« Reply #2 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?
Logged

Fking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
Re: setthing background image for category list row
« Reply #3 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;
}
Logged

tGriff

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: setthing background image for category list row
« Reply #4 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.