Re: [css-d] Newbie: Trying to center items in a dropdownlist on web form
Thursday, August 4, 2005, 10:16:02 AM, Lisa Carter wrote: > For the dropdownlist, I attempted to use > select { text-align: center; } - this did not work. http://www.456bereastreet.com/lab/form_controls/select/ Particularly the 12th select box is styled with text-align and the screenshots show the results in various browsers. Fails in: Safari(v?), IE6/win & IE/mac. > This is the way the boss wants it. Would the boss accept a mono-spaced font? If so, you could try the ugly, UGLY hack of giving the select font-family:monospace and using entities to pad your options on the left so they line up (if you're lucky). But don't do this :) Steve -- http://mrclay.org/ : http://frenchhorns.mrclay.org/ __ 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/
[css-d] Newbie: Trying to center items in a dropdownlist on web form
I am designing a web app and would like to have list items in a dropdownlist centered. I have been able to get all the textboxes and labels to center align using an external css. For the textboxes, I used: input {text-align: center;} For the labels, I used: span {text-align:center;} For the dropdownlist, I attempted to use select { text-align: center; } - this did not work. I also attempted to use a class and this did not work. Does anyone know any tricks that would work to get the items in the ddl to center align? This is the way the boss wants it. Thanks Lisa __ 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/