armia
armia

Reputation: 79

datepicker and css style

I have a problem with a date picker that I attached to my page the style of the date picker is overridden by another style, and it makes the datepicker bad the file which affect the datepicker style is
the css sheets

but when I put this .css online I got this result the current view

any help!

Upvotes: 1

Views: 1651

Answers (3)

Grim
Grim

Reputation: 2040

LESS might be a perfect solution. Convert the CSS to LESS by add a scope like this

#myId{
  .ui-datepicker {
          ... /* width:auto; (in example) */
  }
}

Now convert it back via LESS2CSS to

#myId .ui-datepicker{
   ...
}

Regards.

Upvotes: 0

Sridhar R
Sridhar R

Reputation: 20428

problem is width in smoothness.css file

.ui-datepicker {
    display: none;
    padding: 0.2em 0.2em 0;
    width: 17em;//remove this line then it will work or change into auto
}

Upvotes: 2

Dr Robotnik
Dr Robotnik

Reputation: 352

add !important; to the end of any CSS styles that are clashing with the other style sheet but you want them to be the ones taking effect

Upvotes: -1

Related Questions