Skip to content

How to make the section full width when there is no code in the section? #1617

Answered by Spenhouet
Spenhouet asked this question in Ideas
Discussion options

You must be logged in to vote

I solved this with jquery (would have been better to solve this on the static HTML generation but it was the only way I could make it work). Basically all siblings of a code block are now restricted by the right margin but all others are not.

You can see the result here: https://spenhouet.com/beautiful-docs/en
The code is available here: https://github.com/Spenhouet/beautiful-docs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Spenhouet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant