SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member
    Join Date
    Jun 2007
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why Won't This Work?

    How do I add CSS to the second line, as currenlty it doesn't work. Why?
    The following text should be display in White:

    1 of 1

    Instead it displays in black, and therefore is not linking to the CSS file.

    Code:
    echo  '<div id="Pag">';
    echo    '<div id="PagCap">' . ($_GET['id'] / $perpage) + 1 . "of" . round($TotalRec / $perpage) . '</div>';
    echo  '</div>';

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This isn't a PHP issue. You can load this page in your browser, right click, and choose 'View Source' to see if this HTML was printed correctly. If it is, which I don't see why it wouldn't be, then the problem is in your CSS file.

  3. #3
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    check your files

    If your html is not picking up your css, it may be a simple case of not pointing to your css correctly in the style tag. Try this:
    div {
    color: red;
    }
    If that does not turn your content red then you know it's a file issue. Check your file paths and of course permissions ('other' needs to be able to read it).
    If that does work then the css file is being read, in which case it is a problem with the specificity of the style declaration, as the div may be picking up another style form elsewhere in the sheet.


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
  •