SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using CSS with php

    Hi, I'm new to php but have been using CSS for some time so first thig i did with my php script is attach css to it via <link rel="stylesheet" href="style.css" /> which works fine. However, when my php page is updated via $_SERVER['PHP_SELF'] some of the formatting is lost - usually font family/size/color. The stylesheet I'm using has been running on static sites ok, do I need to modify it for use with PHP ?

    Many thanks

    Kevin

  2. #2
    SitePoint Evangelist Rodney H.'s Avatar
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, Kevin.

    It would be best to post your code so we can see where the problem may be.

  3. #3
    SitePoint Wizard bronze trophy Kailash Badu's Avatar
    Join Date
    Nov 2005
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A CSS file is attached to a PHP page just the same way it it attached to a static HTML page.
    I didn't understand what did you mean to say by:
    However, when my php page is updated via $_SERVER['PHP_SELF']

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you posting a form and using the action as the $_SERVER['PHP_SELF'], if so there is probably an error in the script that is processing the form. If its not showing then look in the source code once you have submitted the form. If its not a form then post the script
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  5. #5
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for looking at my problem but it's sorted.
    Last edited by wilsation; Feb 4, 2007 at 09:49.


Bookmarks

Posting Permissions

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