tweak intro styling, fix css indentation

This commit is contained in:
Mark McGranaghan 2012-10-09 09:07:48 -07:00
parent fb76e45b2d
commit c597b89bf2
2 changed files with 39 additions and 27 deletions

View File

@ -67,6 +67,16 @@ div.chapter {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
div#intro {
width: 400px;
min-width: 400px;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
div#intro ul {
padding-top: 5px;
}
table td { table td {
border: 0; border: 0;
outline: 0; outline: 0;

View File

@ -206,7 +206,9 @@ func renderIndex(chapterIds []string) {
<link rel=stylesheet href="../style/site.css"> <link rel=stylesheet href="../style/site.css">
</head> </head>
<body> <body>
<div class="chapter" id="contents"><h2>Go by Example</h2><ul>`) <div id="intro">
<h2>Go by Example</h2>
<ul>`)
for _, chapterId := range chapterIds { for _, chapterId := range chapterIds {
chapterLines := readLines("src/" + chapterId + "/" + chapterId + ".go") chapterLines := readLines("src/" + chapterId + "/" + chapterId + ".go")