Incorporating HTML dynamically into a page using JavaScript is shown in the example below.
_strInnerHtml += "<em>" + value.cate_name + " | " + value.city_name + "</em>";
_strInnerHtml += "<a href='#' class='activity-item-toggle'><i class='fa'></i></a>";
_strInnerHtml += "<div class='activity-item-detail'>";
_strInnerHtml += "<em>Address 1 : " + value.dire_address_1 + "</em>";
_strInnerHtml += "<em>City : " + value.city_name + "</em>";
_strInnerHtml += "</div>";
_strInnerHtml += "</div>";
I am attempting to increase the font-size
of the em
, but encountering difficulty.
Here is my attempted solution:
.activity-item-detail{
font-size:15px;
}