Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

set datefield size 16 Feb 2013 14:42 #6785

  • LJ01
  • LJ01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 78
  • Thank you received: 2
Hi
how to set the size of date field ?
LJ
Ce sont les fils qui font les cordes
ingall-niger.org

Please Log in or Create an account to join the conversation.

Re: set datefield size 18 Feb 2013 11:11 #6807

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Hi @LJ01

Does setting the size not work?

I have to admit, I've never specified a size for any calendar control inputs as they always work out OK for me however, your template may be overriding this in it's main CSS.

The calendar control is actually just a text input field that has a bunch of JS attached to apply a datepicker to it. Therefore, it probably gets named slightly differently to your usual #jform_fieldname.

If you have tried specifying it's size but it's not obeying your specifications, try debugging the source HTML in firebug or other dev tools to see what CSS properties/classes are getting applied as well as the input ID of the text input. From there you should either be able to modify your JDom call or CSS to achieve your desired size.

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.335 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started