1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
         #mainTable {
              float:  right;
              border: 1px solid black;
              //width: 100px;
         }
         .cellSpan {
              border: 1px solid black;
              //float: right;
              width : 52px;
              padding: 5px;
              display: inline-block;
         }
         .rightSide {
              margin: 3px 3px 3px -2px; /* negative pixels!! */

        }
       .leftSide {
              margin: 3px 0px 3px 3px;
        }
     
       
    </style>
</head>
<body>
     <div id="mainTable">
          <span class="cellSpan leftSide" id="span1">This is my first table cell</span>
          <span class="cellSpan rightSide" id="span2">This is my second table cell</span>
     </div>

</body>
</html>