Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here's my attempt, it includes the shadow border around the image: <a href="http://jsfiddle.net/katychuang/2R3hk/" rel="nofollow">http://jsfiddle.net/katychuang/2R3hk/</a></p> <p>Removed tables to use div. The outer class is "item"</p> <pre><code>&lt;div class="item"&gt; &lt;div class="address"&gt; &lt;span&gt;804 Rolfe&lt;/span&gt; &lt;/div&gt; &lt;img src="http://dl.dropbox.com/u/17949100/samplehouse.png"&gt; &lt;div class='desc'&gt;&lt;span class='l'&gt;2 Bedrooms&lt;/span&gt;&lt;span class='r'&gt;$2100&lt;/span&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>And the CSS. It is good to specify the individual widths for .item and .item img, to get them to line up rather than using 100%</p> <pre><code>.address { height:20px; width:inherit; background: rgba(0, 0, 0, 0.70); font-family:Helvetica; color:#FFFFFF; text-align:center; z-index:500; position:absolute; top:0px; left:0px; padding-top:5px; } span.l{ width:50%; font-family:Helvetica; color:#FFFFFF; text-align:center; font-size:75%; float:left; } span.r{ width:50%; font-family:Helvetica; color:#FFFFFF; text-align:center; font-size:75%; float:right; } .desc { width: inherit; background: rgba(0, 0, 0, 0.70); height: 20px; z-index: 500; position: absolute; bottom: 0px; left: 0px; padding-bottom: 5px; } .item img {width:250px} .item { position:relative; width: 250px; margin: auto; padding: 0px; -moz-box-shadow: 0px 0px 1em rgba(0, 0, 0, 0.9); /* FF3.5+ */ -webkit-box-shadow: 0px 0px 1em rgba(0, 0, 0, 0.9); /* Saf3.0+, Chrome */ box-shadow: 0px 0px 1em rgba(0, 0, 0, 0.9); /* Opera 10.5, IE 9.0 */ filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=10px, OffY=10px, Color='#888'); /* IE6,IE7 */ -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=10px, OffY=10px, Color='#888')"; /* IE8 */ } body {background-color:#EEEEEE;} </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload