Giter Site home page Giter Site logo

Add inline image in text about tabi HOT 6 CLOSED

stalkerGH avatar stalkerGH commented on June 21, 2024
Add inline image in text

from tabi.

Comments (6)

welpo avatar welpo commented on June 21, 2024 1

It wasn't possible with tabi's CSS. I've added (6a4f424) a new class for images, inline, which allows you to do this.

To use it, you'll need to specify the inline class on the image. To embed the image, use HTML:

Some text <img src="path/to/img.png" class="inline" alt="Descriptive text"> and some more text.

I've made it so the image gets vertically aligned with the text, hoping that fits most use cases for this class.

Let me know whether that helps.


As to why I made all images centered and in a new line: I want centered images on my posts. So far, I haven't had to use an inline image. In choosing a default, I chose the one I saw most use for. Making inline images the default (which it is without CSS) would make adding centered images more cumbersome.

Hope that makes sense!

from tabi.

stalkerGH avatar stalkerGH commented on June 21, 2024 1

Thank you very much! Yes, it works like a charm. Little change in the code but great effect :)

from tabi.

stalkerGH avatar stalkerGH commented on June 21, 2024 1

The problem is solved so I close the issue.

from tabi.

welpo avatar welpo commented on June 21, 2024 1

@stalkerGH if you're interested, now you can use all image shortcodes with the inline option (#315)

from tabi.

stalkerGH avatar stalkerGH commented on June 21, 2024

Yes, indeed I'm interested. Thank you for this new feature :)

from tabi.

welpo avatar welpo commented on June 21, 2024

Thank you for the idea!

from tabi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.