±Help
Back to top
Skip to content
Skip to menu
Back to top
Back to main
Skip to menu
reDesign2 and CPGNuCalendar Small Month Block on Right
reDesign2 and CPGNuCalendar Small Month Block on Right
If you use CPGNuCalendar with reDesign2 on a left block all is fine. However if on a right block the resulting block is all washed out looking. This is caused by
Which inverts the text colour. But CPGNuCalendar has a light background, is not templated, nor does it use CSS. Here's my solution:
In block-CPGNuCalendar_Small_Month.php add the new span clause:
and close it at the end:
Then add the following to style.css:
There may well be better ways...
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
L:U8.1/A:2.2.8/M:5.0.51a/P5.2.5/D:9.2.1
Code:
#pe601 .block a, #pe601 .block a:link, #pe601 .block a:visited {
text-decoration: none;
color: #E9E9E9;
}
#pe601 .block a:hover {
text-decoration: underline;
color: #E9E9E9;
}Which inverts the text colour. But CPGNuCalendar has a light background, is not templated, nor does it use CSS. Here's my solution:
In block-CPGNuCalendar_Small_Month.php add the new span clause:
PHP:
$content = '<span class="nucalblk"><table border="0" cellpadding="0" cellspacing="0" width="100%">';PHP:
$content .= "</table></span>\n";Then add the following to style.css:
Code:
#pe601 .block .nucalblk a:hover {
text-decoration: underline;
color: #2277EE;
}
#pe601 .block .nucalblk a, #pe601 .block .nucalblk a:link, #pe601 .block .nucalblk a:visited {
text-decoration: none;
color: #2277EE;
}
#pe601 .block .nucalblk {
color: #222;
}There may well be better ways...
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
L:U8.1/A:2.2.8/M:5.0.51a/P5.2.5/D:9.2.1
-

layingback - Tõusmas kõrgemale

Re: reDesign2 and CPGNuCalendar Small Month Block on Right
It's not "validating" actually, if table is inside a span, however if it's in div, all is fine. Thanks for the fix, I'm sure someone else finds it useful aswell.
EDIT: Or just add nucalblk class to the table itself.
Madis's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.5/9.2.1
EDIT: Or just add nucalblk class to the table itself.
Madis's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.5/9.2.1
-

Madis - Administraator

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
