Note that there are some explanatory texts on larger screens.

plurals
  1. POfloating an image over other divs, from the right
    primarykey
    data
    text
    <p>I've read many other posts regarding floating divs, but haven't been able to find success yet with the things I've tested, so here I am... (I'm still new to this, so apologies if my code isn't super clean!)</p> <p>I have an image that I'd like to float over several others. My goal (if it is attainable) is to have it in a fixed position from the upper right corner of .container. I'm close... but I can't get the image to move in from the right, and as it sits now, it is bumping the other photo out of the header (without the .crosses added, it sits in the green, right-aligned.)</p> <p>The project requires that it still looks good (or degrades nicely) in IE7. </p> <p>I've set up a fiddle here: (can't figure out what the red error means by "links to jsfiddle.net must be accompanied by code") so, if you could just go there and visit: <a href="http://jsfiddle.net/cathi/VAkk5/5/" rel="nofollow">http://jsfiddle.net/cathi/VAkk5/5/</a></p> <p>HTML (extract):</p> <pre><code>&lt;div class="container"&gt; &lt;div class="crosses"&gt;&lt;img src="/img/common/crosses-motif.png" width="213" height="118" alt="crosses-motif" /&gt;&lt;/div&gt; &lt;div class="header"&gt;&lt;/div&gt; &lt;div class="hero"&gt; &lt;div class="herophoto"&gt;photo&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS (extract):</p> <pre><code>.container { width: 80%; margin: 0 auto; } .crosses { float:right; margin-right:0; margin-top:130px; } .header { height: 150px; } .headerlogo { width: 250px; padding-top: 80px; padding-left: 20px; float:left; } .headerlogo2 { float:right; } .hero { height: 205px; } .heroheadline { height: 0; width: 450px; padding-top: 45px; padding-left: 70px; float:left; } .herophoto { height: 205px; width: 333px; float: right; } </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.
    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