-
AuthorPosts
-
March 18, 2007 at 8:09 am #119216
Hi, I will try this once more.
Can somone point me in the right direction to what to edit in the css file if I want to change the background color of just the left column.nathanbohn Friendnathanbohn
- Join date:
- March 2006
- Posts:
- 230
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 9 times in 1 posts
March 18, 2007 at 7:39 pm #216074what version of xenia are you using?
March 19, 2007 at 4:30 am #216088Ja-Xenia 1.0, released 23-01-2007, just the plain one. 🙂
March 20, 2007 at 5:02 am #216144Is there anyone with an answer to this question, please.
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
March 20, 2007 at 8:53 am #216149To change the background of left column, you could edit the style for class #ja-leftcol. After you apply the background for left column, you should also add following script to template index.php to ajust the background height of left column:
<script>
window.onload = function() {
var jaleft = document.getElementById ("ja-leftcol");
var jamain = document.getElementById ("ja-mainbody<?php echo $divid; ?>");
var maxh = 0;
if (jaleft && jaleft.scrollHeight > maxh) maxh = jaleft.scrollHeight;
if (jamain && jamain.scrollHeight > maxh) maxh = jamain.scrollHeight;if (jaleft && jaleft.scrollHeight < maxh) jaleft.style.height = maxh + "px";
}
</script>
March 20, 2007 at 8:46 pm #216182Thank’s I will try to make the change according to Your advice. 🙂
March 21, 2007 at 5:57 am #216206I can’t find the parts to change.
Cna You please, please, please show me the lines to change?Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
March 21, 2007 at 9:40 am #2162131. Open template css file, search following style:
#ja-leftcol {
float: left;
width: 19.9%;
}
You could define background to this style, example:
#ja-leftcol {
float: left;
width: 19.9%;
background-color: #cccccc;
}
2. Open template index.php file, add following code to before </head> line:
<script>
window.onload = function() {
var jaleft = document.getElementById ("ja-leftcol");
var jamain = document.getElementById ("ja-mainbody<?php echo $divid; ?>");
var maxh = 0;
if (jaleft && jaleft.scrollHeight > maxh) maxh = jaleft.scrollHeight;
if (jamain && jamain.scrollHeight > maxh) maxh = jamain.scrollHeight;if (jaleft && jaleft.scrollHeight < maxh) jaleft.style.height = maxh + "px";
}
</script>
March 21, 2007 at 12:42 pm #216231Thank’s a milion times, You are the man. 🙂
-
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by MatsNordahl 17 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum