View Single Post
Old 05-14-2009, 02:24 PM   #25
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
multi-part non-rectangular image wrap !!

here's an image i wrapped with 3 divs, just to see if it could be done. it turns out, it can. and no need to stop at 3 ; this method should work with as many parts as you feel like making.

you need to add a third div, and give it an id. from there, the method is the same as previously. i used a negative margin on the first div (containing the image) because the narrowest part of the image was at the top again.

html code :

Code:
<p>
<div id="girl" class="leftpic"><img src="images/pg140.gif" alt="girl pinning up her frock" /></div>
<div id="girl2" class="leftpic"></div>
<div class="leftpic"></div>

Of all experiences in connection with
towing, the most exciting is being towed by girls. (...)
</p>
css code :

Code:
  div.leftpic {
  float: left;
  clear: left;
  text-align: left;
  margin: 0 0.5em 0.5em 0; 
  border: solid green 1px;/**/ 
}
  div.leftpic img {
  width: 100%;
}
/* GIRL IMG
/* Girl Image size: 169 x 346 
/* these measurements are approximative :
/* Width of top part: 85px
/* Height of top part: 48px
/* Width of middle part: 130px
/* Height of middle part: 56px
/* Width of bottom part: 169px
/* Height of bottom part: 250px */

div#girl {
  max-width: 169px;
  width: 16em;        
  max-height: 1.5em;
  margin-right: -5em;
 border: solid red 1px; /**/ 
}
div#girl2 {
 max-width: 130px;
  width: 7.5em; 
  height: 4em; 
  margin-top: -0.5em;
}
div#girl + div#girl2 + div.leftpic{
  width: 10.5em; 
  height: 15.5em; 
  margin-top: -0.5em;
}
Attached Thumbnails
Click image for larger version

Name:	pg140.gif
Views:	1268
Size:	9.4 KB
ID:	29034   Click image for larger version

Name:	3partimagewrap.png
Views:	1392
Size:	25.0 KB
ID:	29035  
zelda_pinwheel is offline   Reply With Quote