Results 1 to 2 of 2

Thread: CSS ignored by FF in PHP generated page

  1. #1
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default CSS ignored by FF in PHP generated page

    The basic font style and size are wiped from the code by FF for body and p (probing with Firebug.) Doesn't matter if I include them in script or import them via a link. What gives? If I view code in browser, looks OK. The real funny thing is that it works in IE. Most frustrating because this works for two other websites. Is this a server thing, but I don't see how. Please try this link for comparing between FF and IE: http://earth.engr.ccny.cuny.edu/noaa.../geo/index.php What am I stupidly overlooking?

    The font below the image should be in Verdana, not Times. The page footing should be in 8pt, and the heading over the image should be 14 pt.

    Now, another thing: in several other sites, I use <p0> and <p1> and <p2>, etc as different paragraph style tags, and define them in the CSS file as below, and it works in all browsers, but not with this php served page:
    Code:
    body, p, p0, p1 { /* used in index.html */
    	font-family: Verdana;
    	font-weight: bold;
    	letter-spacing: 0;
    	text-align: justify;
    	word-spacing: normal;
    	text-decoration: none;
    	/* color: #000; */
    	}
    
    p {
      font-size: 12pt;
    	line-height: 16pt;
      }
      
    p0 {
    	font-size: 10pt;
    	line-height: 14pt;
      }
      
    p1 {
    	font-size: 14pt;
    	line-height: 16pt;
    	text-align: center;
    }
    And, the CSS code does not validate, so could this be that the server is not set-up correctly? (Yes, this is a new server.)
    Last edited by Strangeplant; 04-05-2008 at 09:33 PM. Reason: added info

  2. #2
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default

    Ah, never mind.......

    I had stupidly put a space between the number and the unit. My mistake. Apparently no server error - at least for now.

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
  •