5 May 22:54
[FB] pondering stylesheet change
Nathan Wiger <nate <at> sun.com>
2005-05-05 20:54:41 GMT
2005-05-05 20:54:41 GMT
I'm pondering changing the way that style classes are handled in
CGI::FormBuilder 3.03. The current implementation is a bit redundant
when looking at CSS more closely.
In FB 3.02, you get something like this:
<form class="fb_form">
<table class="fb_form">
<tr class="fb_tr">
<td class="fb_td"><input class="fb_input"></td>
<td class="fb_td"><select class="fb_select"></td>
And so on. In your .css file you would create
fb_form {}
fb_tr {}
fb_td {}
fb_input {}
fb_select {}
However, in CSS, the correct way to do this is:
form.fb {}
tr.fb {}
td.fb {}
input.fb {}
input.select {}
.fb {} /* catch the rest */
As such, the HTML *should* just look like this:
(Continue reading)
RSS Feed