Using those braces inline generates CODE elements, using them as a block
generates PRE elements.
So to style the latter, use the following selectors:
.viewer pre {
/* ... */
}
HTH.
-- F.
That also counts as inline, as the braces have to be on a separate line
for it to count as a block element.
-- F.
Sounds like a specificity problem.. try making the selector more specific:
#contentWrapper .viewer pre {
Cheers
;Daniel
--
Daniel Baird
/to be or not to be/ => /(2b|[^2]b)/ => /(2|[^2])b/ => /.b/
...optimise your regexes, people!
Can you provide a simple testcase* for us to look at?
-- F.
Looking at the testcase* you've posted in another thread, it appears you
have a syntax error:
---------------
.viewer code {font-size:1.2em; line-height:1.4em;
color:#c06;background:#adf; /***** missing closing brace *****/
#contentWrapper .viewer pre {
/* font-size:1.2em; line-height:1.4em;
color:#c06;background:#adf;} */ } /***** commented out!? *****/
#tiddlerCodeWrappingMethodsTest {color:#000; background-color:#fcf;}
---------------
Could you review this, update your demo accordingly and see whether the
problem persists?
-- F.
* well, it's more of a demo than a minimal testcase:
http://graytestexperiments.tiddlyspot.com