#1
  1. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    449
    Rep Power
    0

    CSS not formatting after page change.


    I have 2 pages that use style.css which has all the classes in it.
    I used to simply drop one page into my web server root dir, open the page and everything worked fine. Now, when I chage pages in the wwroot, it wont format using the css. The first half of the page does format, but the second part does not.
    I *think* it is something to do with the webserver or PHP.
    Once I have fixed it (via a reboot) it works fine untill I drop the other page in there and then it breaks again.
    Below are 2 pics, 2.jpg of what it is supposed to look like and 1.jpg of what it looks like when I get this prob.
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,008
    Rep Power
    2791
    Can you post the code please; images are not very useful.
  4. #3
  5. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    449
    Rep Power
    0
    The code is not the issue... we all know how css works.
    It is not "formatting" using the css. It is a server, web server, php or soemthing else... not the code.

    css file has things like :
    body
    {
    background: #e4f4ea;
    color: black;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 10pt;
    font-weight: normal;
    }
    in it and the mainpage (which is at the top of every page) has :
    include_once "style.php";
    style();

    style.php has :
    <LINK REL=\"stylesheet\" HREF=\"/style/style.css\" type=\"text/css\">

    there ya go.
  6. #4
  7. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,008
    Rep Power
    2791
    Can you post all generated code please; CSS, HTML, etc, for the page. Or post a link.
  8. #5
  9. Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    449
    Rep Power
    0

    Thumbs down


    forget it dude... I told you it aint the code... its a box glitch and I was hoping it was something that some else had encountered.
    Sometimes... rebooting the machine fixes it.
  10. #6
  11. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2004
    Location
    0ffice[c0mput3r] || (Uni())
    Posts
    543
    Rep Power
    11
    Is the CSS in a separate file?
  12. #7
  13. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    Originally Posted by Ricta
    forget it dude... I told you it aint the code... its a box glitch and I was hoping it was something that some else had encountered.
    Sometimes... rebooting the machine fixes it.
    I believe PHP-Newb was right in asking for the output of the server. If, as you think, the "box" is at fault,
    It is a server, web server, php or soemthing else... not the code.
    seeing its output may be helpful. It may not be, too. But if you're so sure about what's causing the problem, fix it. You don't need our help.

    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    7
    Rep Power
    0
    well, judging by the 2 different URL's in the 2 different pictures, it's not working on your local testing server....

IMN logo majestic logo threadwatch logo seochat tools logo