September 5th, 2003, 06:06 PM
comparison - css, php
Hi. I was just wondering if I should bother learning css. basically, I was wondernig - is it possible to change form colors, table borders etc... using php like in css?
September 5th, 2003, 09:45 PM
php is a dynamic content creator and basically just spits out html (usually). unless you are getting the values from somewhere (ie database) and putting them as the style inside you php it is smarter to go with css. css is located in one text based file. you can easily manipulate the style of all pages by changing only one page.
i would suggest you learn CSS
September 6th, 2003, 03:13 AM
I second the "learn CSS" notion. There's a multitude of benefits that I'm not going to go into b/c a quick Google search or forum search will reveal them.
You cannot change the color of anything using PHP (barring image manipulation); you can only use PHP to generate HTML (or style definitions) which in turn change the color of the object.
Explain your problem instead of asking how to do what you decided was the solution.