nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)

Home Page:http://natureofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code vs. comment width

shiffman opened this issue · comments

I'm not sure what is optimal but making a note here that I upped the width for code to avoid having to use offset as much as possible.

bf10115

What do you think @alterebro @calxdesign?

        .code {
            float: left;
            width: 55%;
        }
        .comment {
            float: right;
            width: 43%;
            p { margin: 0; }
        }

I've included an extra class for this named .code-wide because sometimes neither the default display nor the .offset class were looking good.
code-wide

@alterebro wonderful, please feel free to make any other changes / improvements like this as you see fit. The style guides are just a starting point and I'm open to any and all design ideas / tweaks!