> > How is it sacrificing accessibility?
> 
> You have to think about the variety of users that might visit the
> page. A user with images turned off would get an invisible input box.
> Users that are new to the internet might not understand that your
> custom image is an input box; they might expect to see their regular
> OS chrome input box. Et cetera...
> 
> So while it can be done. It it also incumbent upon you to ask if it
> should be done.

Actually, if you provide borders for your input box as well as a background
image, you can have an input (search) box that shows up whether the images
are turned off or not. And if you design your background image in a way that
enhances rather than replaces the box, I don't think you'll have any
problems with people understanding the purpose of the box.

Sample code:

input.searchbox {
        padding-left:2px;
        border: 1px solid;
        border-color: #c0c0c0 #fff #fff #c0c0c0;
        background-color: #f5f5f5;
        width: 15em;
        background-image: url(icn_searchbox.gif);
        background-repeat: no-repeat;
        background-position: left center;
}

live sample of the above code can be found at:

http://www.aurora-il.org/AuroraSite/index.asp

regards,
Ron
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to