forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: chuckywang on August 02, 2005, 01:41:37 am

Title: CSS question with Coppermine template
Post by: chuckywang on August 02, 2005, 01:41:37 am
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.
Title: Re: CSS question with Coppermine template
Post by: donnoman on August 02, 2005, 05:07:40 am
If you really want to; just add your stylesheet next to the coppermine stylesheet assignment in template.html

look for
Code: [Select]
<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.