JavaScript CSS Additional Pseudo Elements to One Class (before, after, +more)

I'm trying to achieve the below result by ONLY using the "labels" class (eg. I don't want the "arrow" class/html). Is this possible with pseudo elements only? Like ".labels:tesing{}" etc.

.labels{
    position: relative;
    display: inline-block;
    vertical-align: top;
    font-size: 16px;
    font-weight: bold;
    font-family: tahoma;
    padding: 5px;
    color: #fff;
    border-radius: 5px;
    background-color: red;
}

.labels:before{
    display: inline-block;
    vertical-align: top;
    font-size: 12px;
    content: '$';
}

.labels:after{
    display: inline-block;
    vertical-align: top;
    margin-left: 1px;
    font-size: 12px;
    content: 'USD';
}


.arrow{
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid blue;
}

HTML:

<div class="labels">199
    <div class="arrow"></div>
</div>

JS Fiddle: http://jsfiddle.net/edcxsw1/w9z7vvxw/

Answer:1

The problem is the same as in Close all HTML unclosed IMG tags, but the provided regexp (<img[^>]+)(?<!/)> requires lookbehind support - which nodejs does not have. How can I achieve the ...

The problem is the same as in Close all HTML unclosed IMG tags, but the provided regexp (<img[^>]+)(?<!/)> requires lookbehind support - which nodejs does not have. How can I achieve the ...

I have a 'beginner' question. Why does this error out? I call the function in the code, but the function is defined further down. AngularJS version: var myApp = angular.module('myApp',[]); function ...

I have a 'beginner' question. Why does this error out? I call the function in the code, but the function is defined further down. AngularJS version: var myApp = angular.module('myApp',[]); function ...

Trying to get the tree layout in D3 to render the child nodes with children closer together. Here is the code: var margin = { top: 20, right: 120, bottom: 20, ...

Trying to get the tree layout in D3 to render the child nodes with children closer together. Here is the code: var margin = { top: 20, right: 120, bottom: 20, ...

I have nav tabs within a modal as shown. I am using the meteor framework. Here is the modal link from sign up button (there is another button called login that links to same modal): <button class=...

I have nav tabs within a modal as shown. I am using the meteor framework. Here is the modal link from sign up button (there is another button called login that links to same modal): <button class=...