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: CSS & HTML in classic & sample theme  (Read 22471 times)

0 Members and 1 Guest are viewing this topic.

PLG

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
CSS & HTML in classic & sample theme
« on: November 11, 2007, 05:02:21 pm »

My apologies if there is another place for theme bugs.

This is not a bug per say. But to clear up a confusion. I newly installed CPG and I was making a custom theme. I spent 20 minutes figuring out where some whitespace was coming from although I am quite familiar with both CSS & HTML.

The conclusion was that in order to remove the white space I had to include some of the functions found in the sample.php into the theme and then disable the cellspacing tag that was placed there with value ="1".

In an attempt to be clear. For the future theme users of CPG, I think it would be a good idea to remove the cellspacing and cellpadding tags from the starttable() function and replace this with CSS tags of border-spacing and margins.
Therefore when someone is making a new theme they need not include those functions just to disable those attributes, but he/she can simply edit the CSS to change the whole look and feel.
« Last Edit: November 12, 2007, 08:14:36 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CSS & HTML in classic & sample theme
« Reply #1 on: November 12, 2007, 08:14:22 am »

Agreed. Moving thread accordingly.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 19 queries.