Use a document-wide table for the main layout
Unified · Split
| @@ -3,7 +3,7 @@ body { · 2 unmodified lines | ||
| 3 | 3 | font-size: normal; |
| 4 | 4 | background: white; |
| 5 | 5 | padding: 0em; |
| 6 | − margin: 0.5em 1em; | |
| 6 | + margin: 0em; | |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | |
| @@ -48,30 +48,33 @@ table.list td { · 38 unmodified lines | ||
| 48 | 48 | img { |
| 49 | 49 | border: none; |
| 50 | 50 | } |
| 51 | − | |
| 52 | −div#header { | |
| 51 | +table#layout { | |
| 52 | + width: 100%; | |
| 53 | + border-collapse: collapse; | |
| 54 | + margin: 0px; | |
| 55 | +} | |
| 56 | +td#header { | |
| 53 | 57 | background-color: #ddd; |
| 54 | 58 | padding: 0.25em 0.25em 0.25em 0.5em; |
| 55 | 59 | font-size: 150%; |
| 56 | 60 | font-weight: bold; |
| 57 | − border: solid 1px #aaa; | |
| 61 | + border-bottom: solid 1px #aaa; | |
| 58 | 62 | vertical-align: middle; |
| 59 | − margin-bottom: 2em; | |
| 60 | 63 | } |
| 61 | −div#header img#logo { | |
| 64 | +td#header img#logo { | |
| 62 | 65 | float: right; |
| 63 | 66 | } |
| 64 | 67 | |
| 65 | −div#header input { | |
| 68 | +td#header input { | |
| 66 | 69 | float: right; |
| 67 | 70 | margin: 0.25em 1em; |
| 68 | 71 | } |
| 69 | −div#header a { | |
| 72 | +td#header a { | |
| 70 | 73 | color: black; |
| 71 | 74 | } |
| 72 | 75 | |
| 73 | −div#content { | |
| 74 | − margin: 0.5em 0.5em; | |
| 76 | +td#content { | |
| 77 | + padding: 1em 0.5em; | |
| 75 | 78 | } |
| 76 | 79 | |
| 77 | 80 | div#blob { |
| @@ -107,12 +107,13 @@ void cgit_print_docstart(char *title, struct cacheitem *item) · 106 unmodified lines | ||
| 107 | 107 | |
| 108 | 108 | void cgit_print_docend() |
| 109 | 109 | { |
| 110 | + html("</td></tr></table>"); | |
| 110 | 111 | html("</body>\n</html>\n"); |
| 111 | 112 | } |
| 112 | 113 | |
| 113 | 114 | void cgit_print_pageheader(char *title, int show_search) |
| 114 | 115 | { |
| 115 | − html("<div id='header'>"); | |
| 116 | + html("<table id='layout'><tr><td id='header'>"); | |
| 116 | 117 | htmlf("<a href='%s'>", cgit_logo_link); |
| 117 | 118 | htmlf("<img id='logo' src='%s'/>\n", cgit_logo); |
| 118 | 119 | htmlf("</a>"); |
| @@ -135,5 +136,5 @@ void cgit_print_pageheader(char *title, int show_search) · 16 unmodified lines | ||
| 135 | 136 | html_txt(title); |
| 136 | 137 | if (cgit_query_repo) |
| 137 | 138 | html("</a>"); |
| 138 | − html("</div>"); | |
| 139 | + html("</td></tr><tr><td id='content'>"); | |
| 139 | 140 | } |