Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try setting the <code>z-index</code> property of the content <code>div</code> higher than the image, like this:</p> <pre class="lang-css prettyprint-override"><code>.content{ z-index: 3; } </code></pre> <p>This will make it so that the content <code>div</code> will be above the image. To make it get bigger as the browser gets smaller, you are going to need to use media queries. These are tags that you include in your head that will allow you to load different CSS files based on the size of the screen. Basically, you should just have larger font settings for the CSS files loaded when the screen is smaller. If you're unfamiliar with media queries, this is a good place to read up on them: <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries</a>. Good luck!</p> <p>UPDATE:</p> <p>Based on your comment, you should change your code to this: </p> <pre><code>&lt;div class="span12"&gt; &lt;div class="image"&gt; &lt;img src="css_js/img/image.jpg"&gt; &lt;div class="content img-circle"&gt;[content]&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>This makes it so that the <code>img</code> and <code>.content</code> are wrapped by the <code>.image</code>. Then, in your CSS file, add this rule:</p> <pre class="lang-css prettyprint-override"><code>.content{ position: relative; } </code></pre> <p>This will change the position of content relative to where the image <code>div</code> is located. Read up on the <code>position</code> property to learn how to move the <code>.content</code> around. You will still need media queries to update the size/position of the <code>div</code> in response to the browser size changing though.</p>
    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.
    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