It seems to be browser-dependent. I just can't get this to work in
Firefox. IE7, Chrome, and Safari for Windows are all OK.
That said, make sure you aren't facing cache issues, and that your new
CSS is, in fact, sticking if you are adding it dynamically.
Can anyone get this to work in FireFox?
I'm referring to this override:
.ui-datepicker { font-size:50%; width: 17em; padding: .2em .2em 0;
background:red;}
Note: the "background:red;" works everywhere, including FireFox, but
the font-size apparently does not.
**--** Steve
On Feb 26, 2:47 pm, "[email protected]" <[email protected]> wrote:
> Hi, I'm getting same issue as Jahelka but when input the font size it
> still doesn't work:
> .ui-datepicker { width: 17em; padding: .2em .2em 0; font-size: 62.5%;}
> Any help? Thanks.
> Mike
>
> On Jan 11, 8:41 am, "Ca-Phun Ung" <[email protected]> wrote:
>
> > Hi,
>
> > The datepicker container is appended to the body so wrapping a div around
> > the input won't work. Try adding your font-size changes to the
> > .ui-datepicker CSS class. e.g.:
>
> > .ui-datepicker {
> > font-size: /* your font size here */;
>
> > }
>
> > On Sat, Jan 10, 2009 at 8:38 AM, Jahelka
> > <[email protected]>wrote:
>
> > > Hi all. New to jQuery!
>
> > > I've got a datepicker up and running on a test page and everything
> > > works great. The only problem I am having is adjusting the size of
> > > the datepicker. If I run the demo of the datepicker that is included
> > > in the dev bundle, the datepicker shows up at a reasonable size. If I
> > > run the datepicker on my test page, it is HUGE! So I dug into the css
> > > and found the one tag that seems to make the difference. The body tag
> > > on the test page is getting a font-size: 62.5%; So I put that in my
> > > test page and now the datepicker is back to a reasonable size. So
> > > then I started thinking, lets put this font-size adjustment in a div
> > > tag or something and put it around the input box that the datapicker
> > > triggers off. This DOES NOT WORK.
>
> > > I don't want to adjust the size of the body, or else I will have to
> > > majorly rework all of my existing css. Why can't I put a div tag
> > > around my input tag and adjust the font-size through inheritance just
> > > like it is obviously doing with the body tag?
>
> > --
> > Ca-Phun Ung
> > +http://yelotofu.com
> > + hongkong, zce, jquery, php, css, html
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---