amezenin / encyclopedia-frontend

0 stars 0 forks source link

exclude css from html #1

Open vahid-forghani opened 2 years ago

vahid-forghani commented 2 years ago

https://github.com/amezenin/encyclopedia-frontend/blob/1d5ccf32e76e932d6ebbb4e0337173fb836f191e/src/app/article/article-list/article-list.component.html#L21

it is better to not write css inside html, there is always a file beside each component with .css or .scss which you can write your css there, you just need to assign a class to your html element and then use that class like: in html file: <button class="test"></button> in css file:

.test {
    margin-bottom: 5pm
    .
    .
}