Post by elli on Sept 13, 2012 13:30:28 GMT -8
Lately, the roleplay kids have started getting into this trend with a fixed, floating left sidebar and a left-aligned board. The code they've been using, a JavaScript by some bro named Joe, is not cross-browser and breaks badly in Internet Explorer.
I liked the idea for my own skins, so I tried it out. For the past two days, I've been coding this and from what I can tell, it works on all browsers, even down to IE 6. It uses some CSS that doesn't validate, but it works -- a lot better than what they were using before.
Will some of you let me know what you think of this before I submit it to the code database here and on Slightly Insane?
Global Headers
Global Footers:
I believe this can't be used with fluid forums, but I haven't tried.
Opinions? Test it out if you want?
Live preview:
timberwoodhighs.proboards.com
I liked the idea for my own skins, so I tried it out. For the past two days, I've been coding this and from what I can tell, it works on all browsers, even down to IE 6. It uses some CSS that doesn't validate, but it works -- a lot better than what they were using before.
Will some of you let me know what you think of this before I submit it to the code database here and on Slightly Insane?
Global Headers
<script type="text/javascript">
<!--
// Remove Welcome Table align and add margin
document.getElementsByTagName('table')[0].removeAttribute("align");
document.getElementsByTagName('table')[0].style.marginLeft = "260px";
//-->
</script>
<style type="text/css">
/* Resize forum with CSS, by Chris */
body table tr td table.bordercolor, body table.bordercolor { width: 850px; }
blockquote table.bordercolor, td.windowbg table tr td table.bordercolor, td.windowbg2 table tr td table.bordercolor { width: 650px !important; }
/* BEGIN SIDEBAR CSS */
html, body { height: 100%; }
#sidebar {
background-color: #a75143;
width: 240px;
height: 100%;
position: fixed;
_position:absolute;
top: 0;
_top:expression(eval(document.body.scrollTop));
left: 0;
bottom: 0;
}
</style>
<!--[if IE]>
<style type="text/css">
#sidebar-container { min-height: 100%; overflow: hidden; }
</style>
<![endif]-->
/* END SIDEBAR CSS */
<div id="sidebar-container">
<div id="sidebar">
some content
</div>
</div>
<div style="width: 850px; margin-left : 260px;" width="850">
Global Footers:
</div>
<div style="width:850px; margin-left: 260px;" width="850">
I believe this can't be used with fluid forums, but I haven't tried.
Opinions? Test it out if you want?
Live preview:
timberwoodhighs.proboards.com