... Maybe that topic description was a little bit long.
Anyway, I'm currently working on a personal website. I'm trying to display the three newest photos from my flickr stream inside a div. Now, I'm not a picky guy. Either the div could dynamically expand in width so that the photos would fit inside it, or it could just completely fill its "mother div" and the images would just have to spread out evenly. Somehow I can't seem to achieve either of those options.
Right now the div has expanded horizontally so that it's the same width as its "mother div", but the images are all aligned to the left - leaving unused space on the right side.
Here's an excerpt of the html (I know the table is ugly, but the images wouldn't align themselves horizontally otherwise, not even with float:left):
[HTML]<div id="container">
<div id="Photos"> <div id="flickr_div"> <table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0"> <tr> <td> <table cellpadding="0" cellspacing="20" border="0" id="flickr_badge_wrapper"> <tr> <td> <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=3&display=latest&size=m&layout=h&source=user&user=33066627%40N04"> </script> </td> </tr> </table> </td> </tr> </table> <a href="http://flickr.com/photos/tommy_brunn"><img src="images/flickr_tv.jpg" alt="Follow Me on Flickr" class="bubble" /></a> </div> </div>
</div>[/HTML]
and here's the CSS:
#container {
width:900px;
padding:50px;
padding-top:30px;
background-image:url(images/background.jpg);
background-repeat:no-repeat;
background-position:top right;
}
#flickr_div {
border:1px solid #222830;
background-color:#101318;
position:relative;
min-height:40px;
padding:10px;
margin-top:15px;
margin-bottom:30px;
width: auto;
}
#flickr_div .bubble {
position:absolute;
bottom:-22px;
right:-14px;
}
.flickr_badge_image {
text-align:center !important;
}
.flickr_badge_image img {
border: 1px solid black !important;
}
Here's what it looks like:
[img]http://img216.imageshack.us/img216/2313/flickrproblempo1.jpg[/img]
Any ideas on how to fix this?