If a similar issue arises, this serves as the resolution.
To format CSS commands in the file, initiate with a specific string (provided below) and then utilize the div notation in Markdown. For instance:
<div class="question">
1. First inquiry
1. Second inquiry
</div>
/* -----------Inquiry counter ---------*/
body {
counter-reset: li;
}
h1 {
font-family:Arial, Helvetica, sans-serif;
font-weight:bold;
}
h2 {
font-family:Arial, Helvetica, sans-serif;
font-weight:bold;
margin-top: 24px;
}
.question ol {
margin-left:0; /* Eliminate default left margin */
padding-left:0; /* Erase default left padding */
}
.question ol>li {
position:relative; /* Establish a positioning context */
margin:0 0 10px 2em; /* Assign a left margin to each list item for numbering */
padding:10px 80px; /* Introduce spacing around content */
list-style:none; /* Disable usual item numbering */
border-top:2px solid #317EAC;
background:rgba(49, 126, 172, 0.1);
}
.question ol>li:before,
.question ol>p>li:before {
content:"Inquiry " counter(li); /* Employ the counter as content */
counter-increment:li; /* Increase the counter by 1 */
/* Position and style the number */
position:absolute;
top:-2px;
left:-2em;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
width:7em;
/* Provide space between number and content in browsers supporting generated content but not positioning (e.g. Camino 2) */
margin-right:8px;
padding:4px;
border-top:2px solid #317EAC;
color:#fff;
background:#317EAC;
font-weight:bold;
font-family:"Helvetica Neue", Arial, sans-serif;
text-align:center;
}
.question ol ol {
counter-reset: subitem;
}
.question li ol,
.question li ul {margin-top:6px;}
.question ol ol li:last-child {margin-bottom:0;}