Page 1 of 1
FAQ: How to change color on print/mail-to-friend
Posted: Fri Sep 16, 2005 7:15 pm
by ot2sen
Often people face the problem of having a colored background on the pop-up
Print and
Mail to friend, when they installed a template with a colored background.
Q: How do I change this background to white ?
A: Open the template_css.css in the /templates/css folder for that template, and add the following:
Code: Select all
body.contentpane {
background: #FFF;
}
This tip originally was posted by Eyezberg on the old forum.
Re: FAQ: How to change color on print/mail-to-friend
Posted: Wed Dec 14, 2005 5:21 pm
by HarryB
Ever wonder how to customize the background, text colors and other properties of the Print and Email Popups? Here's how. The HTML generated for the print and email popups assigns the contentpane class to the statement, i.e., .
So, define a class in your template_css.css file that looks like this:
/* for Joomla! Versions 1.0.x - print and email popups */
body.contentpane
{
background-color: #your_background_color;
background-image: url(your_background_image_url); /* optional, default is no background image */
background-attachment: fixed; /* optional, default is scroll; */
color: #your_text_color;
/* optional...insert any additional properties starting here */
}
Re: FAQ: How to change color on print/mail-to-friend
Posted: Wed Dec 14, 2005 5:26 pm
by guilliam
wouldnt the "body.contentpane" will also control the frontend design?
Re: FAQ: How to change color on print/mail-to-friend
Posted: Wed Dec 14, 2005 6:05 pm
by HarryB
guilliam wrote:wouldnt the "body.contentpane" will also control the frontend design?
No, think its because contentpane is never used directly within a ... in frontend...its always buried in a
,
, etc. But, this really should be changed to a different unique class in index2.php and offline.php to make sure no side effects arise in later releases...
Re: FAQ: How to change color on print/mail-to-friend
Posted: Wed Dec 14, 2005 8:11 pm
by guilliam
oh i get it.. i was refering to contentpaneopen silly me. thanks! really worth for FAQ.
- g
Re: FAQ: How to change color on print/mail-to-friend
Posted: Sun Dec 18, 2005 9:53 am
by guilliam
.
[ MODERATOR NOTE: Threads MERGED ]
.
Re: FAQ: How to change color on print/mail-to-friend
Posted: Thu Jun 22, 2006 12:08 pm
by TBone
for me this did not work:
.contentpane { background-color:#FFF;}
this did work:
.contentpane {background:#FFF;} /* I presume this overules the previous body{background-image:url(image.jpg);} */