HTML does not use CSS rules

I’m new to CSS and I have this problem where my HTML does not use some of the CSS rules I defined.
I have this HTML:

<!DOCTYPE html>

<html ng-app="sample", lang="he">
<head>
    <title>Project</title>

    <meta charset="utf-8">

    <link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="main.css">

    <script type="text/javascript" src="angular.min.js"></script>
    <script type="text/javascript" src="app.js"></script>
</head>

<body>
    <div ng-controller="AppController as app">
        <div class="peoplelist", ng-repeat="person in app.people.data">
            <p class="name">{{person.first + ' ' + person.last}}</p>
            <p class="id">{{person.id}}</p>
        </div>
    </div>
</body>
</html>

and this css:

p.name {
    font-family: "David";
    font-size: 20px;
    margin: 0rem;
    float: right;
}

p.id: {
    font-size: 12px;
    margin: 0rem;
    float: right;
}

div.peoplelist: {
    margin: 5rem;
    float: right;
}

When I open the HTML in my browser (chrome) I can see that the first rule (p.name) is used but the other 2 are not, the browser ignored it. When I checked it (Ctrl+Shift J) I saw that the rule was not associated with the element.

I can’t seem to find an answer online.
Can someone tell me what’s wrong with the code?

Tnx


Source: html5

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.