CSS question with Coppermine template CSS question with Coppermine template
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

CSS question with Coppermine template

Started by chuckywang, August 02, 2005, 01:41:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chuckywang

Hello, I would like to incorporate a header to my coppermine gallery. However, I already have the stylesheet I want to use for that header, and it's different from the style.css stylesheet that the template uses. How do I specify that I want to use my own stylesheet for the header and coppermine's stylesheet for the gallery?

Thanks.

donnoman

If you really want to; just add your stylesheet next to the coppermine stylesheet assignment in template.html

look for <link rel="stylesheet" href="themes/classic/style.css" />

Fair warning: using two stylesheets not built to work together can produce very obscure CSS results that can be tough to troubleshoot.

Also remember css classes are merged and conflict resolution goes by specificity, then if theres still a conflict, last writer wins, so the order in which you specify the css links can become important, and neither order may be totally satisfactory.

Experiment and see. If all else fails, manually merge them into a single css file, then go over the resulting css file with a fine tooth comb. (and css validator)

Good luck.