开发者

Put div in between images

开发者 https://www.devze.com 2023-04-01 14:41 出处:网络
I have 5 images and one div with text. Html looks like this: <div id=\"title\">Title of gallery</div>

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/af开发者_开发百科ter them.

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

Put div in 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.


Here's some CSS shenanigans for you:

http://jsfiddle.net/5qzXV/

0

精彩评论

暂无评论...
验证码 换一张
取 消