question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

margin directive not working

See original GitHub issue

Describe the problem

When I use the margin directive

```{margin}
some content
```

I would expect the content to appear on the side, but it appeares in the middle, just like normal content.

Here is a picture:

margin_error

Link to your repository or website

https://github.com/AndreGismo/jupyter-book-test

Steps to reproduce

  1. Check the jupyter book documentation for nested blocks
  2. Try it on your own

The version of Python you’re using

3.7.10 (default, Feb 26 2021, 13:06:18) [MSC v.1916 64 bit (AMD64)]

Your operating system

Windows 10 Pro, Version 21H1

Versions of your packages

Jupyter Book: 0.10.1 MyST-NB: 0.12.3 Sphinx Book Theme: 0.0.41 MyST-Parser: 0.13.7 Jupyter-Cache: 0.4.2 NbClient: 0.5.3

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mmckycommented, Aug 11, 2021

I need to get my hands on a windows box.

I typical use wsl if you’re at all familiar with that. It might be a good way to get the latest working for you. I really like working with WSL (particularly since WSL2) for programming work.

1reaction
AndreGismocommented, Aug 11, 2021

@mmcky thanks for your efforts!

Looks nice with the margin.

it also looks like you’re not getting the LHS table of contents either.

I have intentionally collapsed the LHS table of contents (because I wanted to create some space for a wider screen, in order to make the margin appear) - but unfortunately this measure didn’t make the margin appear

This shouldn’t be required. I am running python=3.8 but I am using os x.

I think with windows and python > 3.7 there is some issue (see Point 2. here), that’s why I have downgraded python from 3.8 to 3.7

Do you happen to use anaconda for your python environment? Perhaps you could try that distribution as that is the environment I use.

Yes exactly: Anaconda navigator 2.0.4 and conda 4.10.3

Hmm strange, sounds to me, like this is really something with my windows?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML center content through margin auto not working
I though margin:auto would center everything. then I put the following into the child elements. div#team img#team_pic { width:704px; height:462px; margin- ...
Read more >
ng-container - Angular
A special element that can hold structural directives without adding new elements to the DOM. See more... Descriptionlink. The <ng-container> allows us to ......
Read more >
Spacing classes | Reference - BootstrapVue
Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes. Includes support for individual properties, ......
Read more >
The ultimate guide to style content projection in Angular
Where is our margin style? It seems like the styles are not applied to our projected content. Yes, that's exactly what's happening here....
Read more >
CSS Paged Media Module Level 3 - W3C
Each page-margin box has its own margin, border, padding and content areas. Page-margin boxes are typically used to display running headers and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found