-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrapping text around an image #380
Comments
Haven't actually figured out how to add multiple spaces (or, like, a horizontal in-line spacer) myself, so I'll admit to leaving a comment here in part for selfish reasons in case anyone does. What I can tell you, however, is that you can add line breaks without spaces in front (along the lines of https://i0.wp.com/www.critical-hits.com/wp-content/uploads/2014/08/Bulette.jpg), just by adding a double space at the end of a line. |
Thanks. This helps for aligning images on one side of text, so it is s start. |
Hell yeah, found it.
Hope that's what you were looking for! |
The solution you really want for this is CSS's shape-outside. Here's an example of how to do it: |
This report could be turned into an enhancement with a bit of javascript and a CSS class:
This will set the 'shape image' of any image to its image, and thus automatically do what I did in the previous post. |
This might be a candidate for a snippet... or possibly added to the FAQ. |
Linking to FAQ issue #810 |
Tagging as #help-wanted to get a tute/faq written, untagging as #feature as not a development feature. |
Just in case that example brew by @Biotronic goes away or gets broken, this is what the source brew is:
The pertinent bit is adding The effect can also be done with |
Using .wrap-image-left {
shape-outside: attr(src);
float: left;
}
.wrap-image-right {
shape-outside: attr(src);
float: right;
} |
First, thanks for the awesome tool.
I have been inserting images into my docs and positioning them in various ways. However, I haven't figured out how to wrap text around an image.
I have cut out my images so they have transparent backgrounds, leaving the border irregular as oppose to rectangular, but now I want the text to "fill in the gaps" (see pg. 125 in PHB).
Any code help would be appreciated. Thanks.
Additional Details
Share Link :
or
Brew code to reproduce :
Click to expand
The text was updated successfully, but these errors were encountered: