On Fri, 2006-10-27 at 13:47 +0000, RajeshD wrote:
> > We still need some solution for the sort of HTML element, though. This
> > thread started out as a query about controlling the use of input element
> > (with type="text") versus textarea. That part isn't solvable via CSS (it
> > is solvable via Javascript, but I'm not sure how natural that is).
> 
> Strictly speaking, it is solvable by CSS using attribute selectors. For
> example,
> 
> input[type='text'] {width: 25em}

No. The original model had a CharField, which is represented as an input
element. The original poster wanted to change that to a textarea element
(as we do with TextField). You cannot make that change with CSS; it
involves changing the type of HTML element in the form, not its styling.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to