[xwiki-devs] Problem with parametrized headers - Need CSS help
Hi, Input: (% style="color:blue" %) = header = The result doesn't show the header in blue. The reason is that we have the following CSS in toucan: h1 span, h2 span, h3 span, h4 span { background-color:inherit; border-bottom:1px solid #CCCCCC; color:#000000; display:block; margin:20px 0; overflow:hidden; padding:0; position:relative; } It doesn't work since the style is set on h1 and the span's style is overidden in toucan's css. Question: Why don't we set the styles above on h1 instead of h1 span for ex? What can we do to fix this? I don't think that changing the XHTML renderer to set the style on the span would be a good thing. WDYT? Thanks -Vincent
Vincent Massol wrote:
Hi,
Input:
(% style="color:blue" %) = header =
The result doesn't show the header in blue. The reason is that we have the following CSS in toucan:
h1 span, h2 span, h3 span, h4 span { background-color:inherit; border-bottom:1px solid #CCCCCC; color:#000000; display:block; margin:20px 0; overflow:hidden; padding:0; position:relative; }
It doesn't work since the style is set on h1 and the span's style is overidden in toucan's css.
Question: Why don't we set the styles above on h1 instead of h1 span for ex?
Because the almighty, all-knowing Toucan is perfect and doesn't want you to change anything. Why do you want to make blue headers? Blue headers look ugly, trust the Toucan!
What can we do to fix this?
Change the skin.
I don't think that changing the XHTML renderer to set the style on the span would be a good thing. WDYT?
Definitely not. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Sergiu Dumitriu -
Vincent Massol