0
how to add css using php code?????
4 Answers
+ 6
@Geoffrey Levenez
That's nice instead.sir
+ 1
How do you write HTML?
<p>my text</p>
How do you add CSS inside HTML?
<p style='color:red;'>my text</p>
How do you write HTML with PHP?
echo "<p style='color:red;'></p>";
...but that's dirty. Buuuuhhhh =(
0
i think you must look forward there is i dont know how but there is i know that have a nice day
0
In the heading add something like
<?php
Echo "
<style>
p {
color: red;
}
div {
background-image: url(\"folder/img.png\");
Background: center center fixed;
width: 500px;
height: 500px;
}
";
?>
But i won't recommand that , i guess it would be much better if you created a css file and linked it to your home page
Than you can add a css classes to the text you are outputting or something