HTML example

Minimal example of some HTML, CSS and JavaScript working together.

HTML

<div class="container">
<div class="child">
  child1
</div>
<div class="child">
  child2
</div>
</div>

CSS

* {
    font-family: Arial, 'Sans Serif';
}
h2 {
    color: darkblue;
}
#aDiv{
    background-color: lightgray;
}
p {
    color: #20561E;
}
.container {
    display: inline-flex;
    border: 1px solid black;
    
}
.child{
  padding:0.5rem;
}
.child:first-child{
  background-color: red;
}