Change Background-Color

_Alain_ 06 Jan, 2012
Hi all

I'm trying to to get a different Background-Color (only white) of my CF than my Website-Template has.

I put this Code in the OnLoad-Action:

body {	
	background-color: white;
	background-image: none;
}


But the CF still looks like this:
[attachment=1]Bildschirminhalt erfassen-1.jpg[/attachment]

Only when I add this:
<body style="background-color: white;
	background-image: none;padding:10px;">
</body>


into the CF-Code then the Background of the Form gets white.

The problem is, when I get the Confirmationsite then the area of the Chronoform-Logo uses the Background-Color of the Website instead of using white, see here:
[attachment=0]Bildschirminhalt erfassen-2.jpg[/attachment]

How can I get always a white Background to the form ?
And how can I reduce the Hight between the Textboxes, in which CSS is this saved or how can I link to another css-file ?

Kind regards
Alain
GreyHead 06 Jan, 2012
Hi Alain,

I suggest that you use the Web Developer tools in your browser to see exactly what the HTML and CSS are so that you can add the correct selectors to the CSS.

You can add a custom CSS file using a Custom Code action and the Joomla! Document Object methods:
<?php
$doc  =& JFactory::getDocument();
$doc->addStylesheet('path_to_stylesheet');
?>


Or there is a Load CSS File action that you can get from my site if that is simpler.

Bob
_Alain_ 06 Jan, 2012
Thank you GreyHead

I will try your Load CSS Action.
I guess I tried the first methode yet and it did overwrite my Standard-Template (template.css) for the site, maybe because I did something wrong ;-)

Kind regards
Alain
This topic is locked and no more replies can be posted.