On Tue, Mar 11, 2008 at 3:00 PM, Rob Emenecker <
[EMAIL PROTECTED]> wrote:

> Using a negative text indent to "hide" the button label, is not what I
> would
> label as a "best practice" -- IMO. Are the button values dynamically
> changing? If not, why even have text for the value attribute? There's no
> reason -- scripting-wise that it makes sense to do it.
>
> Why? Simple. In most all cases -- save dynamically changing the "value" of
> the button -- you taking specific actions based on specific buttons. Those
> actions should be determined based on the button ID, not the value
> attribute.
>
> If I click on a "Make Background Color Red" button, I have an onclick,
> onmousedown, or mouseup handler attached to
> document.getElementById("changeBgRed_btn").
>
> If you're striving towards "best pratices" make it an all-around success
> by
> avoiding this type of hackish use to accommodate what is possibly a poor
> scripting practice. Just fix the scripting so that you don't need to worry
> about text-indent: -(0.000001-E50px).
>
> ...Rob
>

Hi,
 instead of best practices lets say, " least damaging practices"... it isn't
that a value is so important from the developers perspective ( in my office
).... I  think form elements should be mostly left alone. mostly. I am
loathe to hack together something to hide buttons when they are fine as is.
However the design specs are what they are. thanks for the response !  you
raise a good point.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to