English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

how can use css in php?

2006-06-11 18:34:04 · 4 answers · asked by far 1 in Computers & Internet Programming & Design

4 answers

CSS is for styling, You treat CSS as if your treating HTML. You may produce CSS with php if you want, but CSS acts like HTML which doens't do any harm to PHP.

===
print '

hey

';
?>
===
That will print a paragraph called hey

now lets add some css.
===
print '

hey

';
?>
===
What that would do apply the style I have given it.. As you see I treated it as if it was html :)

Good Luck

2006-06-17 17:34:57 · answer #1 · answered by ? 6 · 1 0

CSS is for styling markup, usually in the form of HTML, XHTML, or XML. You may generate CSS with php if you want, but CSS does not affect PHP. It styles the markup that php produces.

2006-06-13 07:18:19 · answer #2 · answered by Jody 3 · 0 0

Its really simple all you have to do is have a style tag in your php output



or have a in your php output
for example

2006-06-11 19:14:13 · answer #3 · answered by programmer 4 · 0 0

Yes offcourse!


?>

2006-06-11 19:21:13 · answer #4 · answered by t_shivakumar 3 · 0 0

fedest.com, questions and answers