[FX.php List] PHP echo breaks CSS

Dale Bengston dbengston at tds.net
Wed Apr 16 15:37:34 MDT 2008


In practice, the CSS does get whacked in these circumstances (at least  
in Firefox). The work-around seems simple though - avoid echo-ing from  
PHP outside the confines of the html page. The only time I've seen  
this is when errors happen that are reported before the page is drawn.  
The solution is to fix what's causing the errors.

Dale

On Apr 16, 2008, at 3:51 PM, Jonathan Schwartz wrote:

> Understood. The symptom that I am describing is that the appearance  
> of PHP echo outside of the html tags will corrupt display of text  
> inside the html tag, even though css should take over at that point.
>
> I will have an example shortly.
>
> J
>
>
> At 10:39 PM +0200 4/16/08, Gjermund Gusland Thorsen wrote:
>> The stylesheet, should be valid inside the entity of body, not  
>> outside.
>>
>> 2008/4/16, Jonathan Schwartz <jschwartz at exit445.com>:
>>> I'm sure that it is CSS. I'm just curious why it corrupts font  
>>> sizes after
>>> the regular page begins.
>>>
>>>  Will look for reproduceable example.
>>>
>>>  J
>>>
>>>
>>>
>>>  At 8:15 PM +0200 4/16/08, Gjermund Gusland Thorsen wrote:
>>>
>>> > That's probably it
>>> >
>>> > 2008/4/16, Dale Bengston <dbengston at tds.net>:
>>> >
>>> > >  I think it has to do with PHP writing to the page above the  
>>> <body> tag,
>>> > >  possibly above the style sheet declaration. I've seen this on  
>>> Firefox,
>>> but
>>> > >  not other browsers.
>>> > >
>>> > >  Dale
>>> > >
>>> > >
>>> > >  On Apr 16, 2008, at 12:28 PM, Gjermund Gusland Thorsen wrote:
>>> > >
>>> > >
>>> > >  > Little said so far, but already sounds like a CSS issue to  
>>> me.
>>> > >  >
>>> > >  > G
>>> > >  >
>>> > >  > 2008/4/16, Jonathan Schwartz <jschwartz at exit445.com>:
>>> > >  >
>>> > >  > > Gonna have to find one.  I just tried to create the  
>>> problem, and
>>> > >  couldn't.
>>> > >  > > Stay tuned.
>>> > >  > >
>>> > >  > > J
>>> > >  > >
>>> > >  > >
>>> > >  > > At 6:13 PM +0200 4/16/08, Leo R. Lundgren wrote:
>>> > >  > >
>>> > >  > >
>>> > >  > > > Can you give an example page/site? :O
>>> > >  > > >
>>> > >  > > > 16 apr 2008 kl. 18.06 skrev Jonathan Schwartz:
>>> > >  > > >
>>> > >  > > >
>>> > >  > > > > Hi Folks,
>>> > >  > > > >
>>> > >  > > > > I've noticed that having PHP echo something at the  
>>> top of a
>>> page
>>> > >  (before
>>> > >  > > > >
>>> > >  > > >
>>> > >  > > html tag) will often mess up text size on the remainder  
>>> of the
>>> page.
>>> > >  > >
>>> > >  > > >
>>> > >  > > > >
>>> > >  > > > > I'd like to understand what is happening.
>>> > >  > > > >
>>> > >  > > > > Thanks
>>> > >  > > > >
>>> > >  > > > > Jonathan
>>> > >  > > > > --
>>> > >  > > > > Jonathan Schwartz
>>> > >  > > > > Exit 445 Group
>>> > >  > > > > jonathan at exit445.com
>>> > >  > > > > http://www.exit445.com
>>> > >  > > > > 415-381-1852
>>> > >  > > > >
>>> _______________________________________________
>>> > >  > > > > FX.php_List mailing list
>>> > >  > > > > FX.php_List at mail.iviking.org
>>> > >  > > > >
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>> > >  > > > >
>>> > >  > > > >
>>> > >  > > >
>>> > >  > > >
>>> > >  > > > -|
>>> > >  > > >
>>> > >  > > > _______________________________________________
>>> > >  > > > FX.php_List mailing list
>>> > >  > > > FX.php_List at mail.iviking.org
>>> > >  > > >
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>> > >  > > >
>>> > >  > > >
>>> > >  > >
>>> > >  > >
>>> > >  > > --
>>> > >  > > Jonathan Schwartz
>>> > >  > > Exit 445 Group
>>> > >  > > jonathan at exit445.com
>>> > >  > > http://www.exit445.com
>>> > >  > > 415-381-1852
>>> > >  > > _______________________________________________
>>> > >  > > FX.php_List mailing list
>>> > >  > > FX.php_List at mail.iviking.org
>>> > >  > >
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>> > >  > >
>>> > >  > >
>>> > >  > _______________________________________________
>>> > >  > FX.php_List mailing list
>>> > >  > FX.php_List at mail.iviking.org
>>> > >  > http://www.iviking.org/mailman/listinfo/fx.php_list
>>> > >  >
>>> > >
>>> > >  _______________________________________________
>>> > >  FX.php_List mailing list
>>> > >  FX.php_List at mail.iviking.org
>>> > >  http://www.iviking.org/mailman/listinfo/fx.php_list
>>> > >
>>> > >
>>> > _______________________________________________
>>> > FX.php_List mailing list
>>> > FX.php_List at mail.iviking.org
>>> > http://www.iviking.org/mailman/listinfo/fx.php_list
>>> >
>>>
>>>
>>>  --
>>>  Jonathan Schwartz
>>>  Exit 445 Group
>>>  jonathan at exit445.com
>>>  http://www.exit445.com
>>>  415-381-1852
>>>  _______________________________________________
>>>  FX.php_List mailing list
>>>  FX.php_List at mail.iviking.org
>> >  http://www.iviking.org/mailman/listinfo/fx.php_list
>>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> -- 
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-381-1852
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list