[Fixed]-Bootstrap, align text to the right with strong tag within it

1👍

With a little bit of help from mohamedHabib I tweaked my code, so I used span instead of p, moreover I used class="pull-right" instead of class="text-right". So the code looks like this:

    <div class="alert alert-warning" role="alert">
        Error number: <strong>{{ error.error_number }}</strong>
        <span class="pull-right">Active since: <strong> {{ error.datetime }}</strong></span></br>
        Message: <strong>{{ error.error_message }}</strong>
    </div>

0👍

Try using a span instead of p :

<div class="alert alert-warning" role="alert">

    Error number: <strong>{{ error.error_number }}</strong>
    <span class="text-right">Active since: <strong> {{ error.datetime }}</strong></span>
    <br/>
    Message: <strong>{{ error.error_message }}</strong>
</div>

https://jsfiddle.net/jjL3zu4u/

Leave a comment