I have a problem im trying to solve with css its best I show you with an image:

My css:
div#test {
width:90%;
z-index:1;
padding:27.5px;
border-top: thin solid #736F6E;
border-bottom: thin solid #736F6E;
color:#ffffff;
margin:0 auto;
}
Im trying to get it to wrap in all broswer types?
The other problem im wondering is if you look at the first image and a cropted image below I would also like to try add an X plus comment and img (hyperlinks) to each div like so:

No sure if thats possible via css?
For the first issue, this should do the trick:
The order of those is important, for CSS2/CSS2.1/CSS3 progressive enhancement.
For the second issue, it’s possible, sure, but semantically it depends what the image is of. If it’s not content-related, then use
background-image: url('somepath/someimage.png');. Otherwise use animgtag in the HTML.