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.076 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started