Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2010
    Location
    California
    Posts
    42
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Question Adding a CSS style to PHP script

    Hi all, newbe to PHP here.

    I have a table in a PHP script and a CSS style which I would like to add to the the table.

    But how would I add the style to the PHP file? Would I just include the file?

    I included the file but the script output had the same formatting. The only difference was that the content of the CSS file was included in the PHP output.

    -Puppet Master-

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,509
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    Show us what you mean by "adding it to the PHP script".

    Did you do inline CSS?

    Like this:

    <table style="font-family:arial; color:#ffffff;">

  • #3
    New Coder
    Join Date
    Nov 2010
    Location
    California
    Posts
    42
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Perfect, it worked, thanks

    -PM-


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •