NYCPHP Meetup

NYPHP.org

[nycphp-talk] Abstracting CSS: Reusable HTML UI Components

Daniel Convissor danielc at analysisandsolutions.com
Sun May 4 10:28:20 EDT 2008


Hi Mike:

On Sat, May 03, 2008 at 09:57:06PM -0400, Michael B Allen wrote:
> 
>   <div class="myapp">
>   <table>
>   <tr><td colspan="2"><h3>Account Information</h3></td></tr>
>   <tr><td class="fieldlabel">Username:</td><td>abaker</td></tr>
> 
> This seems a little clumsy to me but it's the best I can come up with.

This isn't clumsy.  It's exactly what CSS is for.  I'd put the class 
inside the table element, but that's me.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list