How to get the view as shown below?

hi i am developing an android application using phonegap and i have come across an UI which looks something like as show in the picture

here in image there is a wall to which the information of different users are wrapped around it. I want to get something in that way can anyone give me an idea how to get this kind of UI using html and css.I hope i'm able to explain what i need sorry if my question is not clear. Thank you.

I found the answer here:

Although this is just for one side, I think it is not so hard to get it working for the right side too.


I got it working for both sides:

<!DOCTYPE html>  

<html lang="en">
    <meta charset="utf-8">
    <title>CSS Shapes</title>
    <style type="text/css">
        #container {
            background: #666;
            margin: auto;
            width: 500px;
            height: 700px;
            padding-top: 30px;
            font-family: helvetica, arial, sans-serif;

        h1 {
            background: #e3e3e3;
            background: -moz-linear-gradient(top, #e3e3e3, #c8c8c8);
            background: -webkit-gradient(linear, left top, left bottombottom, from(#e3e3e3), to(#c8c8c8));
            padding: 10px 20px;
            margin-left: -20px;
            margin-top: 0;
            position: relative;
            width: 100%;  

            -moz-box-shadow: 1px 1px 3px #292929;
            -webkit-box-shadow: 1px 1px 3px #292929;
            box-shadow: 1px 1px 3px #292929;  

            color: #454545;
            text-shadow: 0 1px 0 white;

        .arrow {
            width: 0; height: 0;
            line-height: 0;
            border-left: 20px solid transparent;
            border-top: 10px solid #c8c8c8;
            top: 104%;
            left: 0;
            position: absolute;
        .rightArrow {
            width: 0; height: 0;
            line-height: 0;
            border-right: 20px solid transparent;
            border-top: 10px solid #c8c8c8;
            top: 104%;
            left: 100%;
            position: absolute;
    <!--[if IE]>
            .arrow { top: 100%; }

     <div id="container">  

        <h1> My Heading <span class="arrow"></span> <span class="rightArrow"></span></h1>