I'm using D7 and the default image upload field. How do I tack-on the ability to wrap text around the image?
Simply add in your css file:
.field-item img { float: left; padding-right: 5px; }
I'm not 100% sure, if it's field-item or field-items.
Hope it works with your drupal installation
Your suggestion works perfectly.The only problem is I was using a bit of AdaptiveTheme HTML5 code to extract the image's title, displaying it as a caption below. Your code wraps the caption , also. The code uses the figcaption:
<figcaption><?php print $item['#item']['title']; ?></figcaption>
Is there a better way (ie more anchored) to display the default D7 field_image title as a caption?
The only alternative I know is <img title="Your Caption" src="imagelink"> Or you build yourself a div-container with the image and your caption.
<img title="Your Caption" src="imagelink">
Works well, I love when the first thing I try actually does what I want.
Dear Dalabad,
your solution really worked for me. thanks a lot.
Still works thx
How to do the same way for d8 please
Comments
Simply add in your css
Simply add in your css file:
I'm not 100% sure, if it's field-item or field-items.
Hope it works with your drupal installation
Your suggestion works
Your suggestion works perfectly.The only problem is I was using a bit of AdaptiveTheme HTML5 code to extract the image's title, displaying it as a caption below. Your code wraps the caption , also. The code uses the figcaption:
Is there a better way (ie more anchored) to display the default D7 field_image title as a caption?
The only alternative I know
The only alternative I know is
<img title="Your Caption" src="imagelink">Or you build yourself a div-container with the image and your caption.
thanks dalabad
Works well, I love when the first thing I try actually does what I want.
Dear Dalabad,
Dear Dalabad,
your solution really worked for me. thanks a lot.
Still works
Still works
thx
How to do the same way for d8
How to do the same way for d8 please