summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2011-01-20 01:36:37 +0530
committerMadhusudan.C.S2011-01-20 01:36:37 +0530
commitdbfabf24e269f78536ae83d7b775279528c1a34f (patch)
treea9476daff37326e4b1ad79e7dad739cc04fdfc24
parent6ba111eb788dc833caac67c39eb6d4b1b67b3101 (diff)
downloadpytask-dbfabf24e269f78536ae83d7b775279528c1a34f.tar.gz
pytask-dbfabf24e269f78536ae83d7b775279528c1a34f.tar.bz2
pytask-dbfabf24e269f78536ae83d7b775279528c1a34f.zip
Add additional div tags and use % based values for all properties instead of pixel based.
The core ideas of using multiple containers among other things as commented in the CSS file are taken from http://www.maxdesign.com.au/articles/css-layouts/three-liquid/# giving them the due credits they deserve. Thank you very much guys. I was struggling to get a fully liquid three-column layout. I made some changes as per my ideas. --HG-- extra : rebase_source : a071d5e0518ec9b772ac7fc60581fd8412cfa7dd
-rw-r--r--pytask/static/css/base.css30
-rw-r--r--pytask/templates/base.html4
2 files changed, 22 insertions, 12 deletions
diff --git a/pytask/static/css/base.css b/pytask/static/css/base.css
index 0d698b6..b51c7ff 100644
--- a/pytask/static/css/base.css
+++ b/pytask/static/css/base.css
@@ -28,7 +28,14 @@ body {
box-shadow: 0 0 1em darkslategray;
}
-#container {
+/* Taken from http://www.maxdesign.com.au/articles/css-layouts/three-liquid/# */
+#container1 {
+ float: left;
+ width: 100%;
+}
+
+/* Taken from http://www.maxdesign.com.au/articles/css-layouts/three-liquid/# */
+#container2 {
padding: 0px;
margin: 10px 0px 0px 0px;
background-attachment: scroll;
@@ -36,15 +43,17 @@ body {
background-repeat: repeat-y;
background-position: 0px 0px;
height: auto; #default was 1%
- width: auto;
+ float: left;
+ width: 100%;
}
#left {
- margin: 0px;
+ margin: 0;
width: 15%;
- padding: 10px 20px 10px 20px;
+ padding: 1% 1% 1% 1%;
float: left;
border: 1px solid #ddd;
+ display: inline;
}
div #navheader {
@@ -106,11 +115,10 @@ div #navheader {
}
#center {
- height: auto;
- width: 54%;
- padding: 10px 20px 10px 20px;
+ width: 56%;
+ padding: 1% 1% 1% 1%;
float: left;
- margin: 0px 0px 0px 6px;
+ margin: 0 0 0 1%;
line-height: 1.8em;
border: 1px solid #ddd;
}
@@ -125,12 +133,12 @@ h1 {
}
#right {
- padding: 10px 20px 10px 20px;
+ padding: 1% 1% 1% 1%;
height: auto;
width: 20%;
- float: left;
- margin: 0px 0px 0px 6px;
+ float: right;
border: 1px solid #ddd;
+ display: inline;
}
.clearer {
diff --git a/pytask/templates/base.html b/pytask/templates/base.html
index d281cf8..6eba8d4 100644
--- a/pytask/templates/base.html
+++ b/pytask/templates/base.html
@@ -44,7 +44,8 @@
<h2><a href="{% url home_page %}">PyTask</a></h2>
</div>
- <div id="container">
+ <div id="container1">
+ <div id="container2">
<div id="left">
{% include '_left_sidebar.html' %}
@@ -67,6 +68,7 @@
<div class="clearer">
</div>
</div>
+ </div>
<div id="footer">
Designed by <a href="http://fossee.in">FOSSEE</a>
</div>