.legend p {
margin-bottom: 5px;
}
.container {
display: flex;
flex-direction: row;
}
.legend {
flex-grow: 1;
}
.mapLegend {
padding-left: 0;
margin-top:5px;
}
.mapLegend li {
margin-right: 20px;
list-style: none;
display: inline-block;
}
.mapLegend div {
width: 10px;
height: 10px;
display: inline-block;
margin-right: 10px;
font-weight: bold;
}
.mapLegend .oceania-and-antarctica {
color: #ff7f00;
}
.mapLegend .north-west-europe {
color: #1f78b4;
}
.mapLegend .southern-and-eastern-europe {
color: #a6cee3;
}
.mapLegend .north-africa-and-the-middle-east {
color: #b2df8a;
}
.mapLegend .south-east-asia {
color: #fb9a99;
}
.mapLegend .north-east-asia {
color: #e31a1c;
}
.mapLegend .southern-and-central-asia {
color: #fdbf6f;
}
.mapLegend .americas {
color: #cab2d6;
}
.mapLegend .sub-saharan-africa {
color: #33a02c;
}
</style>
<div class="legend">
<ul class="mapLegend">
<li><div class="oceania-and-antarctica">></div>Oceania and Antarctica</li>
<li><div class="north-west-europe">></div>North-West Europe</li>
<li><div class="southern-and-eastern-europe">></div>Southern and Eastern Europe</li>
<li><div class="north-africa-and-the-middle-east">></div>North Africa and the Middle East</li>
<li><div class="south-east-asia">></div>South-East Asia</li>
<li><div class="north-east-asia">></div>North-East Asia</li>
<li><div class="southern-and-central-asia">></div>Southern and Central Asia</li>
<li><div class="americas">></div>Americas</li>
<li><div class="sub-saharan-africa">></div>Sub-Saharan Africa</li>
</ul>
</div>
.legend p {
margin-bottom: 5px;
}
.container {
display: flex;
flex-direction: row;
}
.legend {
flex-grow: 1;
}
.mapLegend {
padding-left: 0;
margin-top:5px;
}
.mapLegend span {
font-weight: bold;
}
.mapLegend li {
margin-right: 20px;
list-style: none;
display: inline-block;
}
.mapLegend .icon {
width: 10px;
height: 10px;
display: inline-block;
margin-right: 10px;
border-width: 2px;
}
.mapLegend .china {
color: #e31a1c;
}
.mapLegend .india {
color: #fdbf6f;
}
.mapLegend .england {
color: #1f78b4;
}
.mapLegend .icon.china {
border-color: #e31a1c;
background-color: rgba(227, 26, 28, 0.2);
}
.mapLegend .icon.india {
border-color: #fdbf6f;
background-color: rgba(253, 191, 111, 0.2);
}
.mapLegend .icon.england {
border-color: #1f78b4;
background-color: rgba(31,120,180,0.2);
}
.mapLegend .icon.year2011 {
border-style: dashed;
}
.mapLegend .icon.year2016 {
border-style: solid;
background-color: transparent;
}
</style>
<div class="legend">
<p>2011 top country (overseas) of birth is</p>
<ul class="mapLegend">
<li><div class="icon china year2011"></div>China</li>
<li><div class="icon india year2011"></div>India</li>
<li><div class="icon england year2011"></div>England</li>
</ul>
</div>
<div class="legend">
<p>2016 top country (overseas) of birth is</p>
<ul class="mapLegend">
<li><div class="icon china year2016"></div>China</li>
<li><div class="icon india year2016"></div>India</li>
<li><div class="icon england year2016"></div>England</li>
</ul>
</div>
<div class="legend">
<p>The direction the immigrant group expanded</p>
<ul class="mapLegend">
<li><span class="china year2016">> </span>China</li>
<li><span class="india year2016">> </span>India</li>
<li><span class="england year2016">> </span>England</li>
</ul>
</div>
.legend p {
margin-bottom: 5px;
}
.container {
display: flex;
flex-direction: row;
}
.legend {
flex-grow: 1;
}
.mapLegend {
padding-left: 0;
margin-top:5px;
}
.mapLegend span {
font-weight: bold;
}
.mapLegend li {
margin-right: 20px;
list-style: none;
display: inline-block;
}
.mapLegend .icon {
width: 10px;
height: 10px;
display: inline-block;
margin-right: 10px;
border-width: 2px;
}
.mapLegend .china {
color: #e31a1c;
}
.mapLegend .india {
color: #fdbf6f;
}
.mapLegend .england {
color: #1f78b4;
}
.mapLegend .icon.china {
border-color: #e31a1c;
background-color: rgba(227, 26, 28, 0.2);
}
.mapLegend .icon.india {
border-color: #fdbf6f;
background-color: rgba(253, 191, 111, 0.2);
}
.mapLegend .icon.england {
border-color: #1f78b4;
background-color: rgba(31,120,180,0.2);
}
.mapLegend .icon.year2011 {
border-style: dashed;
}
.mapLegend .icon.year2016 {
border-style: solid;
background-color: transparent;
}
</style>
<div class="legend">
<p>2011 top country (overseas) of birth is</p>
<ul class="mapLegend">
<li><div class="icon china year2011"></div>China</li>
<li><div class="icon india year2011"></div>India</li>
<li><div class="icon england year2011"></div>England</li>
</ul>
</div>
<div class="legend">
<p>2016 top country (overseas) of birth is</p>
<ul class="mapLegend">
<li><div class="icon china year2016"></div>China</li>
<li><div class="icon india year2016"></div>India</li>
<li><div class="icon england year2016"></div>England</li>
</ul>
</div>
<div class="legend">
<p>The direction the immigrant group expanded</p>
<ul class="mapLegend">
<li><span class="china year2016">> </span>China</li>
<li><span class="india year2016">> </span>India</li>
<li><span class="england year2016">> </span>England</li>
</ul>
</div>