Question: I have two files one is the PHP and the other is the CSS. I cannot find why the page is not printing. I attached
I have two files one is the PHP and the other is the CSS. I cannot find why the page is not printing. I attached a sample page but on mine the text from the variables do not print. Please help.
webpage.php
SERVICE INVOICE
// Define and assign a string variable for my name $my_name = "John Max";
// Define and assign a string variable for my company name $company_name = "John IT Services"; // Define and assign variable for my address $my_address = "25 Windfall Street-3";
// Define and assign variable for my City $my_city = "California";
// Define and assign variable for my state $my_state = "DE";
// Define and assign variable for my zip $my_zip = "20045"; // Define and assign variable for client address $client_address = "178 Elm Street-2";
// Define and assign variable for client City $client_city = "Washington";
// Define and assign variable for client state $client_state = "DE";
// Define and assign variable for client zip $client_zip = "19546";
// Define and assign variable for phone number $phone_number = 123456789;
// Define and assign variable for service description $description = "Fixed hard drive of computer";
// Define and assign variable for billed hours $time = 2.8;
// Define and assign variable for hourly rate $hourly_rate = 32.50;
// Define and assign variable for total by multiplying $time and $hourly_rate; $total = $time * $hourly_rate;
?>
Bill To:
Service Description:
Time: Hours
Hourly Rate: $ per hour
Total: $
style.css
body { font-family: Arial, Helvetica, sans-serif; box-sizing: border-box; background-image: linear-gradient(to right, rgba(255,0,0,0), rgb(240, 137, 137)); }
h1 { text-align: center; }
.client { padding-left: 2rem; border-bottom: 1px solid black; }
.mycompany { padding-left: 0; margin-left: 0; border-bottom: 1px solid black; }
.mycompany h2 { padding-left: 0; margin-left: 1.6rem; }
.bill { padding-left: 1.5rem; padding-top: 1rem; padding-bottom: 2rem; border-bottom: 1px solid black; }
.client h2 { color: rgb(77, 69, 1); font-style: italic; }
.client h3 { margin-left: 4rem; }
span { color: rgb(0, 46, 46); padding: 0.4rem 0.2rem; font-size: 1.3rem; text-decoration: underline; display: table-cell; }
.bill h3 { margin-left: 3rem; display: table-row; }
Sample Page

SERVICE INVOICE John IT Services 25 Windfall Street-3 California, DE, 20045 Bill To: John Max 178 Elm Street-2 Washington, DE, 19546 Service Description: Fixed hard drive of computer Time: 2.8 Hours Hourly Rate: $32.5 per hour Total: $91
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
