Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Put div in between images

I have 5 images and one div with text. Html looks like this:

<div id="title">Title of gallery</div>
<div id="gallery">
    <img src="thumbs/1.jpg"/>
    <img src="thumbs/2.jpg"/>
    <img src="thumbs/3.jpg"/>
    <img src="thumbs/4.jpg"/>
    <img src="thumbs/5.jpg"/>
</div>

I can put my #title inside #gallery if it helps, but not in between images. Only before/after them.

Picture worth more than 1000 words, so here is what I want to achieve:

div with text between images

This is my current CSS for images (nothing more, I've just started):

#page img {
    border:none;
    display:block;
    float: left;
    margin: 2px;
}

I'm also using inuitCSS here, so maybe it can help with my problem somehow.

like image 276
smogg Avatar asked Jun 04 '26 05:06

smogg


1 Answers

Here's some CSS shenanigans for you:

http://jsfiddle.net/5qzXV/

like image 189
josh.trow Avatar answered Jun 06 '26 21:06

josh.trow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!