Comments (6)
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.
Thank you very much! Yes, it works like a charm. Little change in the code but great effect :)
from tabi.
The problem is solved so I close the issue.
from tabi.
@stalkerGH if you're interested, now you can use all image shortcodes with the inline
option (#315)
from tabi.
Yes, indeed I'm interested. Thank you for this new feature :)
from tabi.
Thank you for the idea!
from tabi.
Related Issues (20)
- Misaligned posts when showing latest projects HOT 3
- Projects in RSS Feed HOT 4
- Too little spacing between projects (at the top) and posts HOT 2
- Allow fetching code blocks from external source, display reference in code block title HOT 14
- Umami analytics broken by CSP
- Project on archive page HOT 2
- E-mail icon dissapears when all social icons are off HOT 1
- Add OSM map (Leaflet) to Tabi HOT 4
- Turn off (disable or hide) "blog" section on the main page HOT 10
- nani_logo.webp cannot be read HOT 2
- author in page.html HOT 5
- non-css syntax highlighting doesn't work (and is fixed to one theme) HOT 7
- <h2> renders (almost?) the same size as <h1> HOT 3
- Possible performance issues HOT 3
- Show "updated date" instead of creation date HOT 7
- Long build times - what could be the reason? HOT 52
- Footnote backlinks are not working HOT 3
- Add language support for search engine HOT 2
- Feature Request: add Bluesky SVG to social icons HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabi.