Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code preview #16

Open
tordans opened this issue Nov 26, 2016 · 1 comment
Open

Add code preview #16

tordans opened this issue Nov 26, 2016 · 1 comment
Labels

Comments

@tordans
Copy link

tordans commented Nov 26, 2016

I suggest to add a "show code" button next to the preview image. It would make it much easier to understand the details of what is written in words and shown in pictures if you can see the code next to it.

Example:
This image and text talks about some container. But what is the container? Its not visible in the image. Is it a wrapper around "first line" and "second line"? This questions could be easily solved by looking at the code that generated the image.

bildschirmfoto 2016-11-26 um 11 31 39

@roryokane
Copy link

As a substitute, you can use your browser’s Web Inspector:

Firefox Inspector looking at example-output element in the align-content example

It’s worse than a code sample in that it includes far more information than is relevant. But it’s better than a code sample in that you can inspect each element and see which CSS rules apply to it, and you can edit the CSS and see the changed output to check your understanding of the used properties.

I suppose the ideal would be to include an interactive web inspector in each example that shows only the relevant elements and properties, combining the best of both worlds. But implementing that would probably not be worth the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants