0

how to add css using php code?????

22nd Mar 2017, 4:23 PM
pradhuman shrestha
pradhuman shrestha - avatar
4 Answers
+ 6
@Geoffrey Levenez That's nice instead.sir
22nd Mar 2017, 4:46 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 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 =(
22nd Mar 2017, 4:31 PM
Geoffrey L
Geoffrey L - avatar
0
i think you must look forward there is i dont know how but there is i know that have a nice day
22nd Mar 2017, 5:01 PM
pradhuman shrestha
pradhuman shrestha - avatar
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
22nd Mar 2017, 9:43 PM
Saif Eddin Gmati
Saif Eddin Gmati - avatar