#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    2
    Rep Power
    0

    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?
    thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Windsor ON, Canada
    Posts
    462
    Rep Power
    14
    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
  4. #3
  5. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    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.
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.

IMN logo majestic logo threadwatch logo seochat tools logo