FAQ: How to change color on print/mail-to-friend

Moderator: mcsmom

Post Reply
User avatar
ot2sen
Joomla! Ace
Joomla! Ace
Posts: 1384
Joined: Thu Aug 18, 2005 9:58 am
Location: Hillerød - Denmark
Contact:

FAQ: How to change color on print/mail-to-friend

Post by ot2sen » Fri Sep 16, 2005 7:15 pm

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.
Ole Bang Ottosen - http://www.ot2sen.dk
Danish Joomla! support site – http://joomladanmark.org

User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

Re: FAQ: How to change color on print/mail-to-friend

Post by HarryB » Wed Dec 14, 2005 5:21 pm

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 */
}
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: FAQ: How to change color on print/mail-to-friend

Post by guilliam » Wed Dec 14, 2005 5:26 pm

wouldnt the "body.contentpane" will also control the frontend design?
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

Re: FAQ: How to change color on print/mail-to-friend

Post by HarryB » Wed Dec 14, 2005 6:05 pm

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...
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: FAQ: How to change color on print/mail-to-friend

Post by guilliam » Wed Dec 14, 2005 8:11 pm

oh i get it.. i was refering to contentpaneopen silly me. thanks! really worth for FAQ.

- g
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: FAQ: How to change color on print/mail-to-friend

Post by guilliam » Sun Dec 18, 2005 9:53 am

.


[ MODERATOR NOTE: Threads MERGED ]


.
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

TBone

Re: FAQ: How to change color on print/mail-to-friend

Post by TBone » Thu Jun 22, 2006 12:08 pm

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);} */


Post Reply