JDev

Code, cssOctober 31, 2007 7:53 pm

If you have a definition list  in a relatively positioned div tag, the background image may disappear in Internet Explorer.

The solution is simple. Add a width declaration for the element in your style sheet, i.e. width : 100%;

If this does not help, you can try this tip from  Matt Smith at http://www.positioniseverything.net/explorer/ie-listbug.html:

Add the following declaration in your style sheet: 

ul, ol, dl {
     position: relative; 
}

Code, phpOctober 3, 2007 7:59 pm

According to ncyoung.com, you can use the following piece of code to convert line-breaks into the <br> tag in PHP:

 $str = preg_replace("/\n/","\n<BR>",$str); 

Another way to do it is just  use the <PRE> tag to enclose the string :

echo "<pre>$str</pre>"; 

Code, cssOctober 1, 2007 6:07 pm

When using the float property on elements that don’t have well-defined dimensions, you must include a width declaration in your CSS