Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do you mean like this? Here's a <a href="http://jsfiddle.net/puVpg/2/" rel="nofollow">jsfiddle</a></p> <p>By setting the parent (<code>.answerbox</code>) to <code>position: relative</code>, I'm able to set <code>.more</code> to <code>position:absolute</code> and position it wherever I like in that box; In this case, bottom right of the container.</p> <p><strong>HTML</strong></p> <pre><code>&lt;div class="answerbox"&gt; &lt;a href="#" class="more"&gt;Find out more&lt;/a&gt; &lt;/div&gt; </code></pre> <p><strong>CSS</strong></p> <pre><code>.answerbox { height: 150px; /*Specify Height*/ width: 150px; /*Specify Width*/ border: 1px solid black; /*Add 1px solid border, use any color you want*/ background-color: green; /*Add a background color to the box*/ text-align:center; /*Align the text to the center*/ position: relative; } .more { background: red; position: absolute; bottom: 0; right: 0; padding: 0 10px; height: 30px; } </code></pre> <h3>Edit - In case you want an arrow image on the button</h3> <p><a href="http://jsfiddle.net/puVpg/4/" rel="nofollow">Updated Fiddle</a> </p> <p><strong>CSS</strong></p> <pre><code>.more { background: url('http://dc390.4shared.com/img/AgV87Tvx/s7/arrow_small_right.png') no-repeat left center red; position: absolute; bottom: 0; right: 0; height: 30px; padding: 0 10px 0 20px; /* Extra padding left to make room for the button */ line-height: 30px; /* Used to center the text vertically. Use the same value as the height.*/ } </code></pre> <h3>Edit - Let the box grow with the content</h3> <p><a href="http://jsfiddle.net/puVpg/5/" rel="nofollow">Updated Fiddle</a> </p> <p><strong>CSS</strong></p> <pre><code>.answerbox { width: 150px; /*Specify Width*/ border: 1px solid black; /*Add 1px solid border, use any color you want*/ background-color: green; /*Add a background color to the box*/ text-align:center; /*Align the text to the center*/ position: relative; padding: 10px 10px 40px; } </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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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