Template.html in-line styling Template.html in-line styling
 

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

Main Menu

Template.html in-line styling

Started by steveeh131047, March 21, 2008, 06:06:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

steveeh131047

Is there any reason why some of the theme styling is done with in-line style commands within template.html tags, whereas most is done within style.css? I just been tearing my hair out searching for the background colour in style.css, only to find it's defined in a <td> tag in template.html!

But I still love cpg  ;)

SaWey

Try using firebug or something similar to search for these things :)
It's true, those in-line style commands should be removed.

steveeh131047

Yes, I have Firebug. But this time I was using "Instant Eyedropper" to give me the Hex value of the existing background colour and then searching on this in my editor.

The Firebug css output gets a bit confusing when you get a lot of concatenated CSS files. My cpg theme style.css imports a section.css file, and that in turn imports a core.css file. At the moment I'm just sorting out some of the conflicting style commands. At least I'm learning a lot about CSS selectors and specificity. I think I might just wrap-up all the cpg content in a uniquely identified Div so that I can specify things like the cpg <h1>, <h2> etc uniquely.

Thanks for your quick response.

Joachim Müller

For a quicker overview, don't use Firebug, but the WebDeveloperToolbar.