Note that there are some explanatory texts on larger screens.

plurals
  1. POsolid text on transparent div on image
    primarykey
    data
    text
    <p>I am trying to reproduce this image, with HTML and CSS, but I'm not sure how to place solid images on translucent divs on top of an image. There's one up top and on bottom. And I need a table of these. </p> <p><a href="http://dl.dropbox.com/u/17949100/house.png" rel="nofollow noreferrer">http://dl.dropbox.com/u/17949100/house.png</a></p> <p><strong>Response to comment</strong>: <code>&lt;table&gt;</code> is my lazy way of forcing all the divs to be the same width (and the image). I guess I need to take the text <strong>out</strong> of the divs and place them, which I also had a hard time doing. Then I worried if use resizes the browser.</p> <p>Here's what I got so far on <a href="http://jsfiddle.net/mrcactu5/32szC/" rel="nofollow noreferrer">jsFiddle</a>. Here's the HTML code:</p> <pre><code>&lt;table&gt;&lt;tr&gt;&lt;td&gt; &lt;img src="http://dl.dropbox.com/u/17949100/samplehouse.png"&gt; &lt;div class="address"&gt;&lt;p class="address"&gt;804 Rolfe&lt;/p&gt;&lt;/div&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;/td&gt;&lt;/tr&gt;&lt;/table&gt; </code></pre> <p>Here's the CSS file:</p> <pre><code>div.address { width:100%; height:20px; background-color:#000000; opacity:0.5; } span.l{ width:50%; font-family:Helvetica; color:#FFFFFF; text-align:center; font-size:75%; float:left; margin-top:0px; } span.r{ width:50%; font-family:Helvetica; color:#FFFFFF; text-align:center; font-size:75%; float:right; margin-top:0px; } div.desc { width:100%; height:20px; background-color:#000000; opacity:0.5; } p.address{ font-family:Helvetica; height:20px; opacity:1; color:#FFFFFF; text-align:center; } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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