We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
  • Pages:
  • 1
[ C ] Collapsable Sidebar
Topic Started: May 15 2012, 04:54 AM (1,311 Views)
triforceguy1-ZNR
Member
[ *  * ]
Board Address: http://simple-studios.co.uk
Board Software: ZB
Description: Hello,

I was wondering if I could get a bit of help with a sidebar modification I've been installing (http://www.depiction.net/tutorials/css/sidebar.php)

I've got it working quite well and I'm really happy with it so far, but I want to make it so that when the sidebar has been opened, the whole board body shifts to the right a bit to avoid overlapping

Also there seems to be a bit of an align error which I'm sure is some silly little thing lol

http://imageshack.us/photo/my-images/651/screenshot20120420at211.png/

Recently, I encountered a new problem, it's easier to show you guys

http://imageshack.us/photo/my-images/840/screenshot20120421at113.png/

Look more specifically at the text that says Topic Started:

Here's how I used the code

Spoiler: click to toggle


Cheers
Leon
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
May I see the CSS for this theme?
Offline Profile Goto Top
 
triforceguy1-ZNR
Member
[ *  * ]
Cory
May 15 2012, 06:45 PM
May I see the CSS for this theme?
Sure

Code:
 
html,body {
background:url(http://z2.ifrm.com/10720/162/0/p1034145/background.png) repeat-x top #424c67;
color:#2D3956;
font-family:"Arial";
font-size:93.3%;
margin:0;
padding:0;
}

a {
color:#e61700;
text-decoration:none;
}

a:hover {
color:#ff1a00;
text-decoration:underline;
}

hr {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e61700;
border:1px solid #cf1500;
clear:both;
color:#5a70b3;
height:5px;
}

table {
border-collapse:collapse;
border-spacing:0;
clear:both;
empty-cells:show;
width:100%;
}

th,td {
border:1px solid #bcbcbc;
}

th {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
color:#777;
font-weight:400;
padding:3px 5px;
text-align:left;
}

td {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
color:#333;
padding:5px 10px;
}

th a,th a:hover {
color:#777;
font-weight:700;
}

h1 {
font-size:200%;
}

h2,h3 {
font-size:100%;
}

.category h2,.topic h2,#portal h2,#portal_foot h2,thead th {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #6a7db6;
color:#fff;
font-size:110%;
font-weight:700;
}

thead th {
border:1px solid #bcbcbc;
border-bottom-width:1px;
padding:5px;
text-align:center;
}

h2.special {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #6a7db6;
border-color:#6a7db6;
}

input,select,textarea,button,a.btn_fake {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border:1px solid #bcbcbc;
color:#333;
padding:3px 5px;
vertical-align:middle;
}

textarea {
font-family:"Arial";
font-size:100%;
margin:auto;
width:98%;
}

input:focus,input.focus,textarea:focus,textarea.focus {
border-color:#5a70b3;
}

.submit_error {
background:#fff8eb;
border:1px solid #708090;
}

button,a.btn_fake {
background:url(http://z5.ifrm.com/static/1/css/btn.png) repeat-x top #f8f8f8;
color:#666;
cursor:default;
font-family:Arial;
font-size:90%;
overflow:visible;
width:auto;
}

button:hover,a.btn_fake:hover {
border-color:#708090;
}

button.btn_text {
background:none;
border:0;
cursor:pointer;
font-family:Arial;
font-size:100%;
}

.notice {
background:#fff;
border:2px solid #e7e7e7;
color:#333;
margin:10px auto 0;
width:70%;
}

.notice dt {
color:#8CB5E7;
font-weight:700;
}

.notice dd {
font-style:italic;
}

dl.info {
background:#ededed;
border-color:#708090;
}

.info dt {
background:#5a70b3;
color:#fff;
}

dl.error {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border-color:#BC3737;
}

.error dt {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
color:#BC3737;
}

#top ul,#nav,ul.cat-pages,ul.cat-topicpages,table.calendar ul,div.meta_menu ul,#pm_folderlist,#profile_menuwrap ul {
list-style:none;
padding:0;
}

#profile_menuwrap ul,ul.cat-topicpages,blockquote dl,#fast-reply dd {
margin:0;
}

#top li,#nav li,ul.cat-pages li,ul.cat-topicpages li,table.calendar li,#pm_folderlist li,#profile_menuwrap li,#ucp_gallery li {
display:inline;
}

#top_bar {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e61700;
border:1px solid #708090
height:19px;
}

#top {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #455372;
border:1px solid #708090;
border-top:0px;
height:20px;
padding:0 2% 4px;
margin-bottom:10px;
margin-left:10px;
margin-right:10px;
margin-top:0px;
}

#top_info {
color:#fff;
float:left;
margin-top:4px;
}

#top_menu {
background:#708090;
border-left:0px solid #708090;
float:right;
margin-top:0px;
}

.drop_menu li {
background:url(http://z2.ifrm.com/10720/162/0/p1028477/highlight.png) repeat-x top #58993e;
float:left;
margin-right:1px;
text-align:center;
}

.drop_menu a {
background:url(http://z2.ifrm.com/10720/162/0/p1028477/highlight.png) repeat-x top #58993e;
color: #3b2814;
display:block;
padding:4px .25em;
position:relative;
width:9em;
}

.drop_menu a:hover {
color: #ffffff;
}

.drop_menu ul {
border-top:1px solid #333333;
color: #ffffff;
left:-999em;
margin:0;
position:absolute;
width:9.4em;
}

.drop_menu ul li {
background:url(http://z2.ifrm.com/10720/162/0/p1028477/highlight.png) repeat-x top #58993e;
font-size:85%;
margin:0;
padding:0;
width:100%;
}

.drop_menu ul li a {
border:0 solid #333333;
border-width:0px 1px 1px 1px;
display:block;
padding:5px 5%;
width:90%;
}

.drop_menu li ul li a:hover {
background:url(http://z2.ifrm.com/10720/162/0/p1028477/highlight.png) repeat-x top #68b448;
}

#logo {
background:url(http://z2.ifrm.com/10720/162/0/p1034168/banner.png) no-repeat top left #e7e7e7;
border:1px solid #708090;
clear:both;
margin:10px;
margin-bottom:0px;
padding-left: 135px;
padding-top:20px;
}

#submenu_bar {
background:url() repeat-x top;
border-left:1px solid #708090;
border-right:1px solid #708090;
height:14px;
margin:0 2%;
}

#submenu {
background:url() repeat-x top ;
border-left:0px solid #708090;
border-right:0px solid #708090;
color:#586eb1;
font-size:85%;
margin:0 2%;
padding:3px 1% 4px;
text-align:right;
Float:right;
margin-top:50px;
}

#wrap {
background:url(http://z2.ifrm.com/10720/162/0/p1034151/borderleft.png) repeat-y top left,
url(http://z2.ifrm.com/10720/162/0/p1034152/borderright.png) repeat-y top right;
background-color:#f8f8f8;
border-bottom:2px solid #29334e;
border-top:0px solid #29334e;
margin-left: 150px;
margin-right: 150px;
padding-bottom:10px;
padding:15px;
margin-bottom: 0px;
}


#nav {
color:#5a70b3;
height:1%;
padding:10px 1%;
}

.meta_box {
background:url(http://z5.ifrm.com/static/1/css/boxbg.png) repeat-x top #D8DCEB;
border:1px solid #bcbcbc;
font-size:85%;
line-height:150%;
padding:10px 25px;
}

.meta_menu {
background:#ededed;
border:1px solid #bcbcbc;
padding:0;
width:49%;
}

.meta_menu h3 {
background:url(http://z5.ifrm.com/static/1/css/h2s.png) repeat-x top #FB9D3A;
border:1px solid #708090;
clear:both;
color:#FFF;
font-size:100%;
font-weight:700;
margin:-1px;
text-align:center;
}

.meta_menu a,.meta_menu a:hover {
color:#666;
}

ul.cat-pages {
float:left;
font-size:90%;
margin:15px 0;
padding: 5px 1px;
width:49%;
}

.cat-pages a,.cat-pagesjump i,.cat-topicpages a {
background:#fff;
border:1px solid #bcbcbc;
color:#5a70b3;
}

.cat-pages a:hover,.cat-topicpages a:hover {
background:#ededed;
color:#5a70b3;
}

.cat-pages span {
background:#5a70b3;
border:1px solid #708090;
color:#FFF;
cursor:default;
font-weight:700;
padding:2px 5px;
}

.cat-pages input {
background:#fff;
color:#5a70b3;
padding:3px 5px;
vertical-align:baseline;
}

ul.cat-topicpages {
float:right;
font-size:80%;
padding:1px 0;
}

tr.generic td,div.generic {
font-size:120%;
font-weight:700;
padding:20px;
text-align:center;
}

td.c_head,td.c_sort {
Background:#e0e9e9;
border:0px;
color:#666;
font-size:80%;
}

td.c_foot {
Background:#f8f8f8;
border:0px;
color:#666;
font-size:80%;
}

td.c_desc {
background:#ededed;
font-weight:700;
text-align:right;
vertical-align:middle;
width:200px;
}

td.c_desc small {
display:block;
font-weight:400;
}

tr.pm_new td {
background:#D8DCEB;
font-weight:700;
}

tr.hidden td.c_post {
background:#D8DCEB;
}

.bday {
background:url(http://z5.ifrm.com/static/1/s_minibday.png) no-repeat;
color:#425384;
font-size:90%;
font-weight:700;
height:16px;
padding:2px 2px 2px 18px;
width:20px;
}

.c_mark {
background:#ededed;
text-align:center;
width:1%;
}

.c_forum {
color:#666;
font-size:80%;
width:60%;
}

.c_forum strong a,.c_last strong a {
color:#425384;
}

.c_forum strong a {
font-size:135%;
}

td.c_last {
background:#ededed;
font-size:85%;
}

.c_forum-desc {
color:#333;
font-size:85%;
}

.c_last-title {
background:url(http://z5.ifrm.com/static/1/last.gif) no-repeat left;
display:block;
line-height:16px;
padding-left:10px;
}

td.c_info-v,td.c_info-t,td.c_info-r {
font-size:80%;
padding:5px;
text-align:center;
}

td.c_subforum {
background:#ededed;
color:#425384;
font-size:80%;
font-style:italic;
}

.cat_head td {
border-color:#bcbcbc;
border-bottom:0px;
padding:0;
}

#stats .cat_head td {
border-color:#bcbcbc;
}

.description {
color:#666;
font-size:85%;
}

a.member:hover {
color:#666;
}

td#stats_events a,td#stats_events span {
background:url(http://z5.ifrm.com/static/1/s_minical.png) no-repeat 2px;
padding:4px 0 4px 20px;
}

td.c_username {
background:#ededed;
padding:2px 0;
text-align:center;
}

td.c_username a {
font-size:140%;
font-weight:700;
}

td.c_user {
font-size:80%;
}

td.c_user dl {
background:#ededed;
border:1px solid #bcbcbc;
margin:10px 0;
padding:5px 7px;
width:160px;
}

dl.user_profile {
overflow:hidden;
word-wrap:break-word;
}

dl.user_profile dd {
font-style:italic;
margin-left:8px;
}

dl.user_info dd {
font-weight:700;
margin-bottom:1px;
}

#profile_menu ul {
display:none
-moz-opacity:1;
border-top:0;
opacity:1;
}

#profile_menu a {
display:none
background:#5a70b3;
border:1px solid #708090;
}

#profile_menu li li a {
display:none
border-top:0;
}

#profile_menu li ul li a:hover {
display:none
background:#5a70b3;
}

td.c_poll-choice label {
font-weight:700;
padding-left:1em;
}

td.c_poll-votes {
font-size:120%;
text-align:center;
width:15%;
}

td.c_poll-bar div {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e61700;
border:1px solid #cf1500;
float:left;
height:12px;
padding-right:3px;
}

td.c_poll-bar span {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e61700;
border:0px solid #cf1500;
display:block;
float:left;
height:12px;
width:3px;
}

.editby,.queued {
border:1px dotted #e7e7e7;
color:#2D3956;
font-size:85%;
font-style:italic;
margin-top:1em;
padding:3px 5px;
}

.queued {
background-color:#D8DCEB;
border-color:#bcbcbc;
}

blockquote {
background:#ededed;
border:1px solid #708090;
margin:10px auto;
padding-bottom:1px;
width:98%;
}

blockquote dl {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #e61700;
border-bottom:1px solid #708090;
color:#fff;
}

blockquote dl dt {
color:#fff;
float:left;
font-weight:700;
}

td.c_sig table h2 {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #e61700;
text-align:left;
}

td.c_sig table td {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #ededed;
}

code {
background:#ededed;
display:block;
font-family:Monaco, Consolas, "Courier New", Courier, monospace;
white-space:normal;
}

div.spoiler {
border:1px solid #bcbcbc;
border-top:0;
padding:5px 7px;
}

div.spoiler_toggle {
background:url(http://z5.ifrm.com/static/1/quote.png) repeat-x top #6677AF;
border:1px solid #708090;
color:#fff;
cursor:pointer;
font-weight:700;
padding:2px 4px;
}

td.c_postinfo {
background:#ededed;
color:#2D3956;
font-size:80%;
vertical-align:middle;
}

td.c_sig {
color:#666;
font-size:80%;
}

td.c_sig blockquote {
background:none transparent;
border:0;
border-left:3px solid #2D3956;
padding-left:5px;
}

td.c_sig blockquote dl {
background:none transparent;
border:0;
color:#666;
}

td.c_sig blockquote dl dt,td.c_sig blockquote dl dd {
color:#666;
padding:0;
}

td.c_sig blockquote div {
background:transparent;
margin-left:5px;
padding:0;
}

tr.c_postfoot {
background:#ededed;
clear:both;
}

td.c_footicons,td.c_postinfo {
width:100%;
}

td.c_username {
width:175px;
}

.c_next a {
display:block;
font-size:125%;
font-weight:700;
text-align:center;
}

td.c_view {
background:#ededed;
color:#777;
}

div.c_view-list {
color:#2D3956;
font-size:92.5%;
}

dl#fast-reply dt {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #708090;
border:1px solid #708090;
color:#FFF;
font-size:110%;
font-weight:700;
margin:0;
padding:5px;
}

dl#fast-reply dd {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border:1px solid #bcbcbc;
padding:15px 0;
text-align:center;
}

#c_post-preview {
background:#ededed;
border:1px solid #bcbcbc;
margin:0 auto 10px;
padding:5px;
text-align:left;
width:98%;
}

#c_post-resize span {
color:#e7e7e7;
cursor:pointer;
font-size:225%;
padding:20px 5px 0;
}

#emot_wrap {
background:#ededed;
border:1px solid #bcbcbc;
}

#emot_wrap h3 {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #ededed;
border-bottom:1px solid #e7e7e7;
color:#2D3956;
font-size:120%;
text-align:center;
}

#emot_end {
border-top:1px solid #e7e7e7;
display:block;
font-weight:700;
padding:4px 0;
text-align:center;
}

#pm_folders {
border-left:1px solid #e7e7e7;
border-right:1px solid #e7e7e7;
padding-top:30px;
vertical-align:top;
width:150px;
}

#pm_folderlist {
position: relative;
margin-left:0;
margin-top:0
}

#pm_folderlist li {
background:url(http://z5.ifrm.com/static/1/pmfolder.png) no-repeat 5px;
display:list-item;
margin-bottom:4px;
padding-left:28px;
}

#pm_forwarded {
border:1px dotted #e7e7e7;
color:#2D3956;
font-size:90%;
font-style:italic;
margin-top:1em;
padding:3px 5px;
}

#ucp_gallery a {
color:#425384;
font-weight:700;
}

#ucp_gallery a:hover {
color:#5A70B3;
}

.calendar td.cal_inactive {
background:#ededed;
color:#e7e7e7!important;
}

.calendar td div {
background:#ededed;
border-bottom:1px solid #e7e7e7;
font-weight:700;
padding:5px 7px;
}

.calendar div a {
background:url(http://z5.ifrm.com/static/1/s_minibday.png) no-repeat 5px;
float:right;
font-size:80%;
font-weight:400;
padding:0 0 6px 24px;
}

.calendar li a,.calendar li span {
border-color:transparent;
border-style:solid;
border-width:1px;
display:block;
padding:3px;
}

.calendar td#cal_current {
background:#fff;
border:2px solid #5a70b3;
}

div.portal_content {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border:1px solid #bcbcbc;
font-size:88.3%;
margin:0;
padding:5px 7px;
}

#portal h2 {
font-size:88.3%;
}

#portal h4 {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border-left:1px solid #e7e7e7;
border-right:1px solid #e7e7e7;
color:#777;
font-size:88.3%;
font-weight:400;
margin:0;
padding:5px 7px;
}

#faq dt a {
color:#425384;
font-size:120%;
font-weight:700;
}

#faq dd.faq_more a,#faq dl.faq_more a:hover {
color:#2D3956;
font-style:italic;
}

.search_results {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border:1px solid #bcbcbc;
margin-bottom:1em;
padding:5px 7px;
}

.search_results h3 {
display:inline;
font-size:125%;
}

.search_results cite,.search_results p {
color:#777;
font-size:85%;
margin:0;
}

#findposts .c_mark {
color:#5a70b3;
font-size:200%;
font-weight:700;
vertical-align:top;
}

#pmtoast {
background:#fff;
border:2px solid #708090;
bottom:10px;
color:#333;
display:none;
font-size:90%;
position:fixed;
right:10px;
text-align:right;
text-decoration:none;
width:200px;
z-index:1;
}

#pmtoast:hover {
border-color:#708090;
}

#pmlink {
background:url(http://z5.ifrm.com/static/1/toast.png) no-repeat 5px;
color:#5a70b3;
display:block;
padding:10px 10px 10px 55px;
text-decoration:none;
}

#pmlink big {
color:#5a70b3;
display:block;
font-weight:700;
padding-bottom:5px;
}

#pmlink strong {
color:#708090;
}

#pmclose {
border-top:1px solid #bcbcbc;
color:#5a70b3;
display:block;
font-size:80%;
padding:1px 10px;
}

#pmclose:hover {
color:#708090;
}

#foot_wrap {
display:none;
}

#foot td {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border-bottom:1px solid #e7e7e7;
border-top:1px solid #e7e7e7;
border-left:0;
border-right:0;
color:#777;
font-size:80%;
}

#foot a,#foot a:hover {
color:#777;
}

#foot #foot_datetime {
border-left:1px solid #e7e7e7;
width:1%;
white-space:nowrap;
}

#copyright {
color:#e7e7e7;
font-size:80%;
text-align:center;
float:right;
padding-right: 158px;
}

#copyright a {
color:#e7e7e7;
font-weight:700;
}

#c_tos h3 {
color:#333;
font-size:120%;
}

td.username_ok {
background:#e0fae0;
}

input.username_ok {
outline:2px solid #0c0;
}

td.username_no {
background:#fae0e0;
}

input.username_no {
outline:2px solid #708090;
}

#acplogin {
background:url(http://z5.ifrm.com/static/acp/acpback.png) repeat-x 0 -195px #fff;
border:2px solid #708090;
height:275px;
left:50%;
margin:-137.5px 0 0 -250px;
padding:0;
position:absolute;
top:50%;
width:500px;
}

#acplogin h1 {
color:#FFF;
font-weight:400;
height:50px;
margin-bottom:20px;
padding:50px 20px 0 0;
text-align:right;
}

#acplogin h1 img {
position:absolute;
left:0;
top:0;
}

a img {
border:0;
}

form {
display:inline;
margin:0;
padding:0;
}

.category h2,.topic h2,#portal h2 {
padding:5px;
text-align:left;
}

h3 {
padding:3px 0;
}

input[type=checkbox] {
background:transparent;
border:0;
padding:0;
vertical-align:bottom;
}

input[type=radio] {
border:0;
}

select {
margin:0 7px;
padding:0;
vertical-align:bottom;
}

option {
margin:2px 0;
}

button.btn_img {
border:0;
cursor:pointer;
padding:0;
}

.notice dt,.notice dd {
padding:5px 7px;
}

.drop_menu a img {
vertical-align:bottom;
}

.drop_menu li:hover ul,.drop_menu li.hover ul {
left:auto;
}


#main {
height:1%;
padding:0 1%;
}

#nav li img {
vertical-align:top;
}

.meta_box,.meta_menu {
margin:10px 0;
}

.meta_box li {
display:list-item;
list-style-position:inside;
list-style-type:square;
margin-left:10px;
}

.meta_menu ul {
font-size:90%;
margin:5px 5%;
}

.meta_menu img,.meta_menu span {
float:right;
margin:10px 20px;
}

.cat-pages a,.cat-pagesjump i,.cat-topicpages a {
cursor:pointer;
padding:2px 5px;
}

.cat-topicpages a {
padding:0 2px;
}

.cat-buttons,.topic-buttons {
float:right;
margin:15px 0;
text-align:right;
width:50%;
}

tr.postbtn td {
padding:5px;
text-align:center;
}

.row1,.row2 {
line-height:1.4;
}

td.c_head input,td.c_head button,td.c_foot input,td.c_foot button,td.c_sort input,td.c_sort button {
padding:1px;
}

td.c_desc img,td.c_desc input {
float:left;
vertical-align:middle;
}

.category {
margin:10px 0 0;
}

span.collapse,span.uncollapse {
cursor:pointer;
float:right;
position:relative;
}

.c_mark img {
display:block;
margin:auto;
}

.c_last {
line-height:1.4;
min-width:300px;
width:30%;
}

.category td.c_foot {
display:none;
}

#stats_members {
line-height:1.2;
}

td.c_cat-mark,td.c_cat-icon {
padding:5px 0;
text-align:center;
width:30px;
}

td.c_cat-starter {
width:125px;
}

td.c_cat-lastpost {
width:175px;
}

.c_user {
vertical-align:top;
width:1px;
min-width:175px;
max-width:175px;
}

.c_post {
width:100%;
}

.c_sig,.c_nosig {
width:100%;
}

.avatar {
display:block;
margin:auto;
text-align:center;
}

.av_wrap {
overflow:hidden;
text-align:center;
margin:auto;
}

td.c_user .usertitle {
margin:3px 0;
overflow-x:hidden;
text-align:center;
}

.pip {
margin:3px 0;
white-space:nowrap;
}

dl.user_info dt,dl.user_info dd {
padding:.1em;
}

dl.user_info dt {
float:left;
margin:0;
min-width:4em;
}

dl.user_info dd.spacer,dl.user_profile dd.spacer {
clear:both;
float:none;
height:1px;
padding:0;
}

td.c_poll-choice {
line-height:1.5;
padding-left:45%;
}

td.c_poll-answer {
text-align:right;
width:42.5%;
}

td.c_poll-bar {
text-align:left;
vertical-align:middle;
width:42.5%;
}

* html td.c_poll-bar span {
margin-top:3px;
}

td.c_post {
line-height:1.7;
vertical-align:top;
}

td.c_post ul {
list-style-type:square;
margin-left:10px;
}

.c_post img,#topic_review img {
max-width:90%;
}

.c_post-attachment {
font-size:83.3%;
margin-top:1em;
padding:1em;
}

.c_post-attachment dd {
margin-left:1em;
}

.post_sep {
background:#f8f8f8;
border-left:0px;
border-right:0px;
font-size:1px;
height:10px;
}

td.c_sig,td.c_nosig {
height:1%;
vertical-align:top;
}

td.c_nosig {
border-top-style:hidden!important;
}

blockquote dl dt,blockquote dl dd {
padding:2px 4px;
}

blockquote div,blockquote code {
margin:0;
padding:5px;
}

dl#fast-reply {
clear:both;
margin:auto;
width:80%;
}

dl#fast-reply dd p {
margin:-3px;
padding:0 5% 10px;
text-align:left;
}

dl#fast-reply dd textarea {
display:block;
height:100px;
margin-bottom:10px;
padding:2px;
width:90%;
}

#c_post-text {
height:223px;
}

#c_post-resize {
float:right;
margin-top:-1px;
padding:4px 0 0;
text-align:right;
}

#btn_preview {
float:left;
margin:10px 0 0 1px;
}

#c_emot {
height:225px;
vertical-align:top;
width:210px;
}

#emot_list {
height:275px;
margin:0 auto;
overflow:auto;
padding:5px 0;
text-align:center;
}

div#emot_list {
padding:0;
}

#emot_list li {
display:inline;
padding:4px 10px;
}

#emot_list img {
cursor:pointer;
vertical-align:baseline;
}

.pm {
margin-bottom:1em;
}

#pm_datesent {
width:200px;
}

#pm_select {
text-align:center;
width:1px;
}

#conversation .c_post {
padding:2em;
}

#ucp_profile,#pm_messages {
float:right;
}

#ucp_settings img,#ucp_profile img {
margin:18px 20px;
}

#ucp_gallery li {
float:left;
margin:15px 5px;
}

#ucp_gallery button {
cursor:pointer;
text-align:center;
}

.ucp button.btn_text {
padding:5px 0;
text-align:center;
width:100%;
}

.calendar td {
height:125px;
padding:0;
vertical-align:top;
width:14.3%;
}

.calendar li {
display:list-item;
font-size:80%;
margin:0;
}

.calendar li.placeholder {
padding:4px;
}

.calendar li span {
cursor:default;
}

.calendar td#cal_current div {
padding-top:3px;
}

#portal_head {
margin-bottom:10px;
}

#portal_foot {
margin-top:10px;
}

#portal_l,#portal_r {
font-size:88.3%;
margin:0;
padding:0;
}

#portal_l {
float:left;
width:200px;
}

#portal_r {
float:right;
width:150px;
}

#portal_news {
margin:0 160px 0 210px;
}

#portal_clear {
background:transparent;
border:none;
clear:both;
font-size:1px;
height:1px;
margin:0;
padding:0;
}

.portal_box {
margin-bottom:5px;
padding:1px;
}

.portal_box table {
clear:none;
}

#portal h2,#portal_foot h2 {
clear:none;
margin:0;
padding:3px 5px;
}

#faq {
margin:20px 0;
}

#faq dl {
padding:1em;
}

#faq dt {
margin-bottom:5px;
}

#faq dd {
display:list-item;
margin:0 0 3px 15px;
padding-left:3px;
}

.search_results div {
display:block;
margin:5px 0;
}

#acplogin #loginform {
display:block;
padding:0 50px;
}

.category h2 a,#portal h2 a,#portal_foot h2 a,thead a,.category h2 a:hover,#portal h2 a:hover,#portal_foot h2 a:hover,thead a:hover,#top_info a,#top_info a:hover,.drop_menu a,.drop_menu a:hover {
color:#ffffff;
}

input,select,td,th {
font-size:90%;
}

button.btn_default,#nav li span,.c_post-attachment dt,#c_tos dt {
font-weight:700;
}

.meta_menu a:hover {
text-decoration:underline;
}

.meta_box h3,td.c_topicfoot strong,#meta_welcome strong {
font-size:120%;
}

.meta_box h3,.meta_box a,.meta_box a:hover,tr.pm_new td a,tr.pm_new td a:hover,tr.hidden td a,tr.hidden td a:hover,.c_forum strong a:hover,.c_last strong a:hover,#faq dt a:hover,.search_results h3 a,.search_results h3 a:hover {
color:#5a70b3;
}

.row2 td,blockquote div {
background:#ededed;
}

a.member,.calendar td a,.calendar a:hover,#faq dd a,#faq dd a:hover {
color:#333;
}

img,.meta_box button img,td.c_cat-mark input,.c_post-attachment img,.warn img,#ucp_gallery a img {
vertical-align:middle;
}

h1,h2,h3,#nav,#boardmeta,#main {
clear:both;
margin:0;
}

#meta_welcome,.search_results {
clear:both;
}

#stats_events {
line-height:2;
}

.c_cat-starter,.c_cat-replies,.c_cat-views,td.c_poll-total,td.c_poll-vote,td.c_topicfoot,.warn,.ucp th,#c_notes,.calendar th {
text-align:center;
}

blockquote dl dd,#foot #foot_links {
text-align:right;
}

#c_post,#ucp_gallery {
text-align:center;
vertical-align:top;
}

#files_upload input,.pm .row1 a,.pm .row2 a,#ucp_gallery button img,#findposts td a {
display:block;
}

#ucp_settings,#pm_settings {
float:left;
}

#c_tos dd,#username_response {
margin-left:10px;
}

#vlx {
z-index:1;
}

#blog {
background:#5a70b3;
border:1px solid #708090;
color:#333;
margin:10px 0;
}

#blog blockquote {
background:none;
border:none;
font-size:85%;
padding:0 10px;
}

#blog h1 {
float:right;
}

#blog h2 {
background:none;
clear:none;
font-size:130%;
padding:0;
}

#blog h2,#blog h2 a,#blog h2 a:hover {
color:#5a70b3;
}

#blog_foot {
clear:both;
margin-bottom:20px;
}

#blog_head {
background:#ededed;
border:8px solid #5a70b3;
padding:10px 14px;
}

#blog_head img.avatar {
display:inline;
}

#blog_main {
margin:20px 200px 10px 10px;
}

#blog_categories,#blog_readers,#blog_about,div.blog_options {
background:#ededed;
margin:15px 0;
padding:5px 7px;
}

#blog_sidebar h3,#blog_sidebar dt {
color:#5a70b3;
font-weight:700;
}

#blog_sub {
background:#708090;
clear:both;
position:relative;
padding:5px 7px;
text-align:right;
}

#blog_sub span {
padding-top:4px;
}

#blog_sidebar {
background:#708090;
float:right;
font-size:93.3%;
margin:20px 10px 0 0;
padding:0 10px;
width:160px;
}

#blog_sidebar dd {
margin-left:10px;
}

#blog_user {
font-size:175%;
}

div.blog_options {
font-size:90%;
text-align:right;
}

div.blog_date {
background:#ededed;
border:1px solid #708090;
color:#5a70b3;
float:right;
font-weight:700;
margin:0 15px;
text-align:center;
text-transform:uppercase;
width:40px;
}

div.blog_date span {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border-top:1px solid #e7e7e7;
color:#708090;
display:block;
font-size:130%;
font-weight:700;
padding:2px 4px;
}

div.blog_entry {
background:#fff;
margin:10px 0;
padding:5px 7px;
}

#blog_comments li {
padding:5px 7px;
}

#blog_comments li.odd {
background:#ededed;
}

#shoutwrap {
background:url(http://z2.ifrm.com/10720/162/0/p1034141/shadowmm.png) repeat-x top #e7e7e7;
border:1px solid #bcbcbc;
font-size:88.3%;
}

#shoutwrap td {
padding:0;
}

#shoutbox {
list-style-type:none;
margin:0;
padding:0;
}

#shoutbox li {
padding:5px 7px;
}

#shoutbox li.odd {
background:#ededed;
}

#shoutbox dl,#shoutbox dt,#shoutbox dd {
margin:0;
padding:0;
}

#shoutbox dt {
color:#777;
font-size:80%;
}

#shoutopts,#shoutpost {
clear:both;
text-align:center;
}


td.c_postfoot a, .c_postfoot td a, #conversation .c_postinfo span.right a, button,a.btn_fake, #submenu a, #posthex a {
background:#8aad2b url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top!important;
border: 1px solid #7c6b54!important;
padding: 1px 5px!important;
margin: 0 1px!important;
color:#ffffff!important;
text-decoration:none!important;
}

td.c_postfoot a:hover, .c_postfoot td a:hover, #conversation .c_postinfo span.right a:hover, button:hover,a.btn_fake:hover, #submenu a:hover, #posthex a:hover {
background:url(http://z2.ifrm.com/10720/162/0/p1034144/h2.png) repeat-x top #81a61a!important;
color:#e7e7e7!important;
text-decoration:none!important;
}

table.profile td.c_mark {
width: auto;
align: center;
padding-bottom:20px;
border:0px;
background: #f8f8f8;
}

.profile, .ucp+table {
margin-top:10px;
}

.profile th#profile_menuwrap {
border-right:0;
display:none; }

/*
Facebook Style Like/Dislike System for ZetaBoards v1.0
Copyright 10-29-10 ~Wonder
May not be reposted anywhere
Place in the Below the Board section of the Board Template
*/
.likebg {background-color: #eaeaea;}






/* Sidebar */

.left
{
float:left;
position:fixed;
left:0px;
width:300px;
}

#container {
background-color:#d0e4fe;
width:900px;
margin:0 auto 0 auto;
}

#sidebar {
float:left;
}

#sbText {
background-color:#d0e4fe;
padding:10px 10px 0 10px;
}

#handle {
float:right;
background:url(http://z4.ifrm.com/30343/95/0/f5255957/Handle.png);
width:10px;
height:225px;
}

#content {
background-color:#d0e4fe;
float:left;
padding:10px;
border-left:1px solid #000;
}
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
What's the alignment error you speak of?
Code:
 
<script type="text/javascript">
$('#wrap').css('margin', '0 0 0 300px');

$('#handle').click(function () {
if ($('#sidebar').width() === 250) {
$('#wrap').css('margin', '0 0 0 300px');
} else {
$('#wrap').css('margin', '0 150px');
}
});
</script>
That will change the wrap margin, depending if the sidebar is collapsed or expanded.

You can set overflow: auto; or overflow: hidden; or word-wrap: break-word; on the #sbText strip so the text won't break off the sidebar.
Offline Profile Goto Top
 
triforceguy1-ZNR
Member
[ *  * ]
I'll try that now

Sorry for the late reply, I just finished my exams ^_^
The script half works, it did bump it all the way to the side but it won't come back lol, I've tried editing it a bit with no luck, could I get a bit of help here please?
Edited by triforceguy1-ZNR, May 19 2012, 10:11 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Are you saying the board wrap stays on the right side and won't go back in the center when you close the sidebar? Does it work correctly for you here?
Offline Profile Goto Top
 
triforceguy1-ZNR
Member
[ *  * ]
It works on your one okay, but the board does not go back to the centre on my one
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Is the theme applied to your test board right now? If so, can I see a link (via PM will be fine)?
Offline Profile Goto Top
 
triforceguy1-ZNR
Member
[ *  * ]
Cory
May 22 2012, 09:41 AM
Is the theme applied to your test board right now? If so, can I see a link (via PM will be fine)?
No, I'll do that now, give me a few minutes ^_^

Of course, it would help if I could remember the url of my test board lol
http://w11.zetaboards.com/ThemesOfLeon/index/

Sorry that took so long, had to go through my emails to November lol
But yeah, it's not working there either so I know there aren't any codes conflicting with each other
Edited by triforceguy1-ZNR, May 22 2012, 02:12 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You seemed to have change the 300px to 0px and the 150px to 0px in the code.

Also, put the code at the bottom of Edit Theme Layout.
Offline Profile Goto Top
 
triforceguy1-ZNR
Member
[ *  * ]
Cory
May 22 2012, 11:04 PM
You seemed to have change the 300px to 0px and the 150px to 0px in the code.

Also, put the code at the bottom of Edit Theme Layout.
I was kinda tweaking it earlier to see if I could get it to work, but it didn't, but it seems you were right about putting the code at the bottom of the layout section lol

Thank you very much.

I'll probably tweaking this code even more later, just to make it look nice, so do you mind if this stays open in case I get any more problems?
Almost forgot, I don't know if it is possible but is there a way to get the board to remember if you had it closed or open, at the moment, if you close the sidebar and then go onto another page, the sidebar will be opened again, so I want it to stay closed if if the user loads another page on the forum, is that possible?
Edited by triforceguy1-ZNR, May 23 2012, 04:06 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I won't report this topic to be closed until you are ready for it to be closed. :)

What you are wanting would require cookies, and I don't know enough about cookies to make it work; I've tried it before. I advise PMing Quozzo for cookie help, I always go to him for cookie help and he always pulls through.
Offline Profile Goto Top
 
triforceguy1-ZNR
Member
[ *  * ]
Cory
May 23 2012, 04:33 AM
I won't report this topic to be closed until you are ready for it to be closed. :)

What you are wanting would require cookies, and I don't know enough about cookies to make it work; I've tried it before. I advise PMing Quozzo for cookie help, I always go to him for cookie help and he always pulls through.
Okay, I'll try to direct him here lol

And thanks again for the help ^_^
Offline Profile Goto Top
 
JDE-ZNR
Member Avatar
Member
[ * ]
triforceguy1
May 23 2012, 03:45 AM
is there a way to get the board to remember if you had it closed or open, at the moment, if you close the sidebar and then go onto another page, the sidebar will be opened again, so I want it to stay closed if if the user loads another page on the forum, is that possible?
I would love to have this modification as well, if that's possible. I currently have 2 of these sidebars installed on my board (one on the left for Chatango, and one on the right for advertising FB, Twitter, & G+), and some of my members say that it's a bit intrusive having to close it again every time you go to a different page / refresh. I kind of think this as well. Anyway, thank you for any help!

EDIT: Ack, I guess I should have read the guidelines before posting this. >_<
Edited by JDE-ZNR, Jun 26 2012, 01:05 AM.
Offline Profile Goto Top
 
JDE-ZNR
Member Avatar
Member
[ * ]
Sorry to double post, but, a few days after I last replied, I decided to just jump right into this:

triforceguy1
May 23 2012, 03:45 AM
is there a way to get the board to remember if you had it closed or open, at the moment, if you close the sidebar and then go onto another page, the sidebar will be opened again, so I want it to stay closed if if the user loads another page on the forum, is that possible?


Alright, here we go.

Step 1: Import a script to handle the cookies.
-----> Step 1A: Download and unzip this zip file.
-----> Step 1B: Upload the .js file to your File Manager. This will help ensure that if your board is up, the script will be available. You won't have to depend on anyone else.
-----> Step 1C: Then place this code into the Javascripts section (Includes references) and plug the link to the .js file you uploaded into the src tag:

Spoiler: click to toggle


Step 2: Now change out the original Javascript for the sidebars with this one. Towards the bottom, change the text in red to match the URL of your forum, and change the text in purple to whatever you want. You'll need that name later for Step 3. NOTE: I originally wrote this for my forum, which uses two sidebars. What I'm posting should work for just one. I'm editing it as I type this post:

Spoiler: click to toggle


Step 3: Now place this code in Above The Board. This code is what closes the sidebars when they are supposed to be closed on page-load. It'll work Below the Board and Above the copyright, but it's much faster here:

Spoiler: click to toggle


Alright, that should be it! Enjoy! PM / E-mail me if you need any help. :D
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1