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 Shreerang Patwardhan

HTML

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<!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>
    <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>
    </ul>
</body>
</html>

CSS

#no-ellipsis{
    text-overflow: initial !imporatnt;
    overflow: visible !imporatnt;
    white-space: normal !important;
}