Click here to Skip to main content
15,884,099 members
Home / Discussions / Web Development
   

Web Development

 
Questionwinform to WebService First call very slow... Pin
ahkayastha3-Sep-09 7:38
ahkayastha3-Sep-09 7:38 
AnswerRe: winform to WebService First call very slow... Pin
SeMartens3-Sep-09 21:22
SeMartens3-Sep-09 21:22 
QuestionWeb page and screen resolution problem Pin
dcode253-Sep-09 5:21
dcode253-Sep-09 5:21 
AnswerRe: Web page and screen resolution problem Pin
Marc Firth3-Sep-09 14:11
Marc Firth3-Sep-09 14:11 
AnswerRe: Web page and screen resolution problem Pin
Abhishek Sur3-Sep-09 21:46
professionalAbhishek Sur3-Sep-09 21:46 
AnswerRe: Web page and screen resolution problem Pin
David Skelly3-Sep-09 22:28
David Skelly3-Sep-09 22:28 
QuestionHow to change the background colour of a page using PHP? Pin
Razanust3-Sep-09 2:30
Razanust3-Sep-09 2:30 
AnswerRe: How to change the background colour of a page using PHP? Pin
Marc Firth3-Sep-09 14:05
Marc Firth3-Sep-09 14:05 
First off theres a dedicated php forum on this site - which might get you more replies in future.

Now to answer your question.

If you're doing all those at once then the problem you are having appears to be that you are setting the background colour twice. The following code should work:

<?php <?php
//set a colour
$bgColour = "#CCCCCC";
?>
<html>
<head>
<style type="text/css">
/*set the background colour using PHP */
body{ 
background-color: <?=$bgColour;?>;
color:#FFFFFFF;
}
</style>
</head>
<body>
Blah Blah Blah
</body>
</html>


If the bg colour is being set more than once some settings may override others. Also ife a div is the entire size of the page and that has a bg colour then the page will appear that color. I suggest doing a find on all the files in your forum for the phrase "background-color".

If you editing a css file and want to put php in it then you'll need to add a .htaccess file in the same directory as your css file that says to parse all css files as php:

# Allows css files to be parsed like php - you may need an alternative entry here
AddType application/x-httpd-php .css


Then you'll need to add:

<?php <?php
header("Content-Type: text/css");
?>


to the top of your css file.

I think that just about covers everything.


QuestionSession variables cleared in deployment environment Pin
anto20052-Sep-09 6:09
anto20052-Sep-09 6:09 
AnswerRe: Session variables cleared in deployment environment Pin
Abhijit Jana2-Sep-09 8:20
professionalAbhijit Jana2-Sep-09 8:20 
GeneralRe: Session variables cleared in deployment environment Pin
anto20052-Sep-09 8:29
anto20052-Sep-09 8:29 
GeneralRe: Session variables cleared in deployment environment Pin
Abhishek Sur2-Sep-09 12:02
professionalAbhishek Sur2-Sep-09 12:02 
Question[Message Deleted] Pin
LunaticFringe1-Sep-09 7:48
LunaticFringe1-Sep-09 7:48 
AnswerRe: DMCA notices and GoDaddy Pin
Joe Simes1-Sep-09 7:53
Joe Simes1-Sep-09 7:53 
GeneralRe: DMCA notices and GoDaddy Pin
LunaticFringe1-Sep-09 8:33
LunaticFringe1-Sep-09 8:33 
GeneralSEO N00b Question. [moved] Pin
Brady Kelly1-Sep-09 6:55
Brady Kelly1-Sep-09 6:55 
GeneralRe: SEO N00b Question. Pin
Shog91-Sep-09 7:11
sitebuilderShog91-Sep-09 7:11 
QuestionPlease give the me the Ruby on rails tutorials link Pin
Rajeshwary1-Sep-09 2:51
Rajeshwary1-Sep-09 2:51 
AnswerRe: Please give the me the Ruby on rails tutorials link Pin
Vimalsoft(Pty) Ltd1-Sep-09 2:55
professionalVimalsoft(Pty) Ltd1-Sep-09 2:55 
GeneralRe: Please give the me the Ruby on rails tutorials link Pin
Rajeshwary1-Sep-09 3:01
Rajeshwary1-Sep-09 3:01 
GeneralRe: Please give the me the Ruby on rails tutorials link Pin
Vimalsoft(Pty) Ltd1-Sep-09 3:08
professionalVimalsoft(Pty) Ltd1-Sep-09 3:08 
GeneralRe: Please give the me the Ruby on rails tutorials link Pin
Rajeshwary1-Sep-09 3:19
Rajeshwary1-Sep-09 3:19 
GeneralRe: Please give the me the Ruby on rails tutorials link Pin
Vimalsoft(Pty) Ltd1-Sep-09 3:39
professionalVimalsoft(Pty) Ltd1-Sep-09 3:39 
QuestionProblem with break point Pin
rinku soni 231-Sep-09 0:54
rinku soni 231-Sep-09 0:54 
AnswerRe: Problem with break point Pin
Vimalsoft(Pty) Ltd1-Sep-09 2:40
professionalVimalsoft(Pty) Ltd1-Sep-09 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.