خرید بک لینک

Vote count: 0

I have the following:

enter image description here

My css is as follows:

ion-item.comment-format {
  white-space : normal!important;
}

and the html is :

 <ion-list>
        <ion-item ng-repeat="comment in vm.Idea" class="comment-format">

From the image above, I expected the comment-format rule to apply but it is only when I toggle white space with nowrap (which has a line through it) does it apply. I was expecting my first rule to apply. Clearly my understanding of rules is not correct.

asked 3 mins ago

1 Answer

Vote count: 0

css property white-space:nowrap is not applied in you page because it is overwritten with other css white-space:normal !important.

If there are two same css with different declarations is there for one element and one is declared with !important then no matter which css is first the css declared with !important will work only.

answered 13 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 15 ارديبهشت 1395 ساعت: 1:23

صفحه بندی