Changing font size in coldfusion autosuggest

Posted on 2014-07-16
Last Modified: 2014-07-16
Does anyone know how to change the font size on a ColdFusion autosuggest? When typing into a text field, the suggestions that pop-up are very large and I'd like to make the suggested text smaller.

Thank you.
Question by:earwig75
    1 Comment
    LVL 51

    Accepted Solution

    CF uses the YUI autocomplete component for that feature, so for style changes, you need to look at their docs. A quick skim of this example suggests you just need to overwrite the "yui-ac-bd" class:

    <style type="text/css">
    	<!-- change color to demonstrate it works --->
    	.yui-ac-bd { color: 008000; font-size: 0.7em; }
    <cfinput type="text" name="test"  autosuggest="AAAAA,BBBB,CCCCC,DDDDD,EEEE">

    Open in new window


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
    PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
    This video discusses moving either the default database or any database to a new volume.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now