Skip to content

Commit 0b4a06a

Browse files
committed
Changed to table layout for the base page. Not puristic, but the non-table approach had problems with some pages, (some content being forced to start below the lefthand menu even when there was space higher up), and I could see no easy way to fix it.
- Legacy-Id: 1344
1 parent b35cf8f commit 0b4a06a

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

ietf/templates/base.html

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
{% block doctype %}<?xml version="1.0" encoding="iso-8859-1"?>
1+
{% block doctype %}<?xml version="1.0" encoding="utf-8"?>
22
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
33
{% endblock %}
4-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
4+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
55

66
{# Copyright The IETF Trust 2007, All Rights Reserved #}
77
<!-- Copyright The IETF Trust 2007, All Rights Reserved -->
@@ -24,19 +24,28 @@
2424
</head>
2525

2626
<body {% block body_attributes %}{% endblock %}>
27-
<div id="leftmenu">
28-
{% include "leftmenu.html" %}
29-
</div>
30-
31-
<!-- end new headers and layout -->
32-
<div id="content">
33-
{% if user.is_authenticated %}
34-
<span style="float: right; font-size: 80%;">Logged in as {{ user }} |
35-
<a href="/accounts/logout/">Log Out</a></span>
36-
{% endif %}
37-
{% block content %}{% endblock %}
38-
</div>
39-
{% block footer %}{% include "footer.html" %}{% endblock %}
27+
<table border="0" cellspacing="0" cellpadding="0" id="pagelayout">
28+
<tr>
29+
<td class="column" id="leftmenu">
30+
{% include "leftmenu.html" %}
31+
<!-- end new headers and layout -->
32+
</td>
33+
<td class="column">
34+
<div id="content">
35+
{% if user.is_authenticated %}
36+
<span style="float: right; font-size: 80%;">Logged in as {{ user }} |
37+
<a href="/accounts/logout/">Log Out</a></span>
38+
{% endif %}
39+
{% block content %}{% endblock %}
40+
</div>
41+
</td>
42+
</tr>
43+
<tr>
44+
<td colspan="2">
45+
{% block footer %}{% include "footer.html" %}{% endblock %}
46+
</td>
47+
</tr>
48+
</table>
4049
{% include "debug.html" %}
4150
</body>
4251
</html>

0 commit comments

Comments
 (0)