Jquery Mobile - List View with text formatting

This example shows how content within a list can be formatted while still maintaing the listview structure

by Viktor

HTML

<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.css">
<!DOCTYPE html>
<html>
<head>
	<title>Jquery Mobile - List View with text formatting</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
    <div class="ui-grid-a">
        <div class="ui-block-a">
            <ul data-role="listview">
                <li data-role="list-divider">
                    Spatial Unlimited
                    <div class="ui-li-count">158</div>
                </li>
                <li>
                    <a href="http://shreerangpatwardhan.blogspot.com">
                        <h3>Author: Shreerang Patwardhan</h3>
                        <p><b>Description:</b> Spatial Unlimited is a Tech blog where, examples using Google Maps API v3 and Jquery Mobile are shared. I have tried to give back to the developer community as much as I can.</p>
                        <p class="ui-li-aside">Last update: April 9, 2013</p>
                    </a>
                </li>
                <li>
                    <a href="http://www.facebook.com/SpatialUnlimited">
                        <h3>Spatial Unlimited on Facebook</h3>
                        <p id="no-ellipsis">You can like Spatial Unlimited on Facebook and stay updated with the latest articles that I post on my blog.</p>
                    </a>
                </li>
                <li>
                    <a href="http://www.facebook.com/SpatialUnlimited">
                        <h3>Spatial Unlimited on Facebook</h3>
                        <p id="no-ellipsis">You can like Spatial Unlimited on Facebook and stay updated with the latest articles that I post on my blog.</p>
                    </a>
                </li>
                <li>
                    <a href="http://www.facebook.com/SpatialUnlimited">
...

CSS

#no-ellipsis{
    text-overflow: initial !imporatnt;
    overflow: visible !imporatnt;
    white-space: normal !important;
}
.left{
    width:49%;
    display:inline-block;
}
.right{
    width:49%;
}