Duane Nelson wrote: > I'm cleaning up my css and xhtml for a new design and having problems > with a text box.
It's generally more productive to design new pages well than to clean up existing pages. > URL: http://rapicom.net/site-2009/quotes.html > CSS: http://rapicom.net/site-2009/css/rc.css > > Problem: The input text box for "Date Required (mm/dd/yyyy):" appears > to be aligned justified or right. But that is not in the style sheet. The text is in an element with id="date", and the style sheet contains #date { float: right; width: 220px; text-align: right; } So it right-aligns it in _two_ ways. If you really want to clean up the page, it's probably best to remove that entire rule, since the width setting isn't useful either. It just makes the field too small or too large, depending on font size (which need not be the one you suggest in your style sheet). For an input element expecting data of the form aa/bb/cccc (which is a seriously ambiguous format, by the way), the best approach is to set size="10" in HTML and not set the width in CSS at all. There is nothing in CSS that corresponds to the concept "average width of a character". -- Yucca, http://www.cs.tut.fi/~jkorpela/ ______________________________________________________________________ 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/
