Re: [Phphtmllib-devel] Usability issues
Status: Beta
Brought to you by:
hemna
|
From: Walter A. B. I. <wab...@bu...> - 2002-06-07 00:50:18
|
> I didn't see any mention of the html_* functions in the doco. ---yah I need better docs The docs that I have are auto generated w/ phpdoc. Otherwise docs wouldn't really exist :) > RTFS time I guess :) > > One of the best things about phpHtmlLib in general is that it eliminates > that annoying issue of having to 'close' tags. It's amazing how much > debugging time I've wasted looking at statements like > "echo '</table\n'" and asking 'which bloody nested table have I closed > here?!?'. ---Amen. After you get over the learning curve of using the libs, it really can speed up the development of sites using it, especially applications where you can create widget classes that can be reused. > For example, if one wants TD cells to have a given font size, one has to > embed a FONT tag in each cell, which tends to mess up the code. (I > commented out the 'FONT is deprecated' warning in the lib, and I haven't > found anything in phpHtmlLib for CSS). I'll have a go at addressing > this. ---the font tag actually is a depricated tag in the W3C spec. You should use a <span> or <div> to add styles to text. In your case all u need to do is specify a style on the TD tag. <td style="font-family:arial;font-weight:bold;font-size:10pt;"> foo bar</td> or <td> <span style="font-family:arial;font-weight:bold;font-size:10pt;> foo </span> </td> In most cases I use a css class. <td class="myfont"> foo </td> or <td> <span class="myfont"> foo </span> </td> the great thing about <span> is that its harmless as far as layout goes the browsers don't put auto padding on it, and it doesn't break layouts. It was meant as a replacement for <font> CSS is definetly the next project to tackle, but I haven't come up with anything yet for it. > > Cheers > David > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Phphtmllib-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel |