[Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

Changing font size in coldfusion autosuggest

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.
1 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now