html - Why are only some of my CSS selectors working? -


i'm bit new html/css , i'm having hard time figuring out why of selectors aren't working.

as stands right now, .tasklist , .totalleft seem in effect. i've tried changing them class selectors doesn't seem work either. think syntax correct, i've tried doing 1 @ time , work, it's when doesn't work. missing here...? thanks!

html

  <body ng-app="app" ng-controller="democontroller">      <center><h1>todos angular.js</h1></center>      <div>       <input type="text" ng-model="input" placeholder="what needs done?">       <button type="submit" ng-click="add()">add task</button>     </div>     <input type="checkbox" ng-model="allchecked" ng-change="markall(allchecked)">mark complete<br>      <ul class="tasklist" >       <li ng-repeat="item in items">         <input type="checkbox" ng-model="item.done">         <label id="done-{{item.done}}">{{item.val}}</label>         <hr>       </li>     </ul>     <br>      <div class="totalleft">       {{numleft()}} out of {{items.length}} remaining       <button id="clearbutton" type="submit" ng-click="clearitems()" ng-show="showclear()">clear {{numcompleted()}} items</button>     </div>    </body> 

css

.tasklist {   list-style-type:none;   padding-left: 0px;   margin-left: 0px;   text-indent: 0px; }​  #done-true {   text-decoration: line-through;   color: grey; }  .totalleft {   background-color: #e5e5e5;   color: dark grey; }​  #clearbutton{   font-size: 50%; } 

have copied code straight text editor? when copy/paste editor seeing utf character:

code showing red dots character

see red dots? when remove them in editor styling works. here code without elements:

.tasklist {   list-style-type:none;   padding-left: 0px;   margin-left: 0px;   text-indent: 0px; }  #done-true {   text-decoration: line-through;   color: grey; }  .totalleft {   background-color: #e5e5e5;   color: dark grey; }  #clearbutton{   font-size: 50%; } 

.tasklist {    list-style-type:none;    padding-left: 0px;    margin-left: 0px;    text-indent: 0px;  }    #done-true {    text-decoration: line-through;    color: grey;  }    .totalleft {    background-color: #e5e5e5;    color: dark grey;  }    #clearbutton{    font-size: 50%;  }
<body ng-app="app" ng-controller="democontroller">        <center><h1>todos angular.js</h1></center>        <div>        <input type="text" ng-model="input" placeholder="what needs done?">        <button type="submit" ng-click="add()">add task</button>      </div>      <input type="checkbox" ng-model="allchecked" ng-change="markall(allchecked)">mark complete<br>        <ul class="tasklist" >        <li ng-repeat="item in items">          <input type="checkbox" ng-model="item.done">          <label id="done-{{item.done}}">{{item.val}}</label>          <hr>        </li>      </ul>      <br>        <div class="totalleft">        {{numleft()}} out of {{items.length}} remaining        <button id="clearbutton" type="submit" ng-click="clearitems()" ng-show="showclear()">clear {{numcompleted()}} items</button>      </div>      </body>


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -