tags:

views:

25

answers:

1

This piece of code works fine on firefox. However with everything else it doesnt work as desired. I am trying to make the X on the top right with the image beneath the title/X as it shows in the firefox image below

alt text

+1  A: 

You want to make sure the image is underneath the text and the "X". In order to do this, you need to add a div that clears the space as follows:

<div style="clear:both;"></div>

Place this div under your text and the "X", and above the image div. This will guarantee the image always sits below your text without overlap.

In the context of your first box, this code would be:

<div class="temp"><div class="fn">namedkfjdjfdjfsjdfijsdifjdsfdfsddsdf.jpg</div>
<div class="remove">X</div>
<div style="clear:both;"></div>
<div class="imgdiv"><img src="http://th960.photobucket.com/albums/ae89/DarkKitteh/Stuffz/th_Avatars_Funny_Cat_With_Headphones.gif"/&gt;&lt;/div&gt;&lt;/div&gt;
sscirrus
It works :). Thanks. Also i see theres many rev before that was it you? http://jsfiddle.net/aqYbt/10/
acidzombie24
Hiya, yeah - I haven't used jsfiddle before so I didn't know it would show you my tinkering :). Glad it worked!
sscirrus
@sscirrus: Its very handy. If you hit run it hides the revisions and you can hit update to have a more permanent version (which i like so i can test on other browsers or not worry if my browser crash/close)
acidzombie24