Easy enough, put a width on the parent wrapper either in the class definition if you want the width the same on all pictures or in the div line if you want to adjust it image by image
.parentwrapper { border:1px gray dashed; float: left; Width: 200px; text-align: center;} Or <div class="parentwrapper" width="200px"> Cheryl D. Wise Certified Professional Web Developer MS-MVP-FrontPage www.wiserways.com mailto: [EMAIL PROTECTED] 713.353.0139 Office -----Original Message----- From: Eddie Castelli One thing have come across. What happen, when the text is longer than the picture is width? In my tries I found no ways of wrapping it automatically. So far I've played with the 'display' option but haven't reached to make it wrapping. Maybe I just don't know the right tag. May I ask you help on this please? many thanks in advance. ============= Image Caption Formater =================== <html> <head> <title>Image Caption Formater / WDVtalk 20031127</title> <style type="text/css"> body {background-color: #fffff2; color:blue; font-family:verdana; font-size:8pt} .parentwrapper {border:1px gray dashed; float:left; text-align:center;} .imagestyle {width:200px; height:100px; border:4px red double; display:block; margin-bottom: 5px;} .captionstyle {color:maroon; font-weight:bold; font-style: italic; border-bottom:4px;} </style> </head> <body> <!-- Parent wrapper for Image and its Caption --> <div class="parentwrapper"> <img class="imagestyle" src="any_image.jpg" align="top"> <span class="captionstyle">This is the image caption text. But what happen when it is longer than the picture?</span> </div> </body> </html> ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email. To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]