21

In Markdown, you add an image as

![myimg](link)

Now, I can easily change the size and placement of said image using attributes as

![myimg](link){: height="75px" width="300px" align="left"}

How do I also make it so that there is also a (choosable) space between image and text? Parameters like border don't work.

Using Kramdown as converter, on Github pages, if that matters.

2
  • @StevenPenny Yea tried that as well to no avail! Commented Jan 7, 2017 at 8:01
  • 2
    use CSS... (markdown/html is not for layouting) Commented Jan 9, 2017 at 20:08

2 Answers 2

26

Markdown is not capable of designing layouts like this. You can use multiple non-breaking spaces ( ) to adjust the spacing between an image and text.

Example:

![image](link)    text

Result:

    text

Sign up to request clarification or add additional context in comments.

Comments

4

This worked for me

![myimg](link){: height="75px" width="300px" style="float:left; padding-right:10px" }

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.