![]() |
|
CSS Help, would like to add a sidebar to Sterile theme! - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: CSS Help, would like to add a sidebar to Sterile theme! (/thread-463.html) |
CSS Help, would like to add a sidebar to Sterile theme! - sshepherd - 2006-04-24 I'm pretty new to CSS, oldschool tables fan but I've been getting by. I was wondering if anyone could point me in the right direction on how to add a right sidebar to the Sterile theme. I'd like to keep the main index of the gallery centered as with the standard sterile layout, but attach a 180px sidebar to it's right with a 10px padding between the two. I've tried adding one myself, and making the zen.css changes I thought it needed, but the box kept getting placed underneath the gallery and above the zen link. Thanks! CSS Help, would like to add a sidebar to Sterile theme! - trisweb - 2006-04-24 Try the "float" attribute. Specifically, "float: right;" Then try placing the sidebar div above or below (code-wise) the div you want it to be next to, and see if that makes a difference. You might also need to reduce the width of the other div, to "make room" for the new one. Good luck! CSS Help, would like to add a sidebar to Sterile theme! - sshepherd - 2006-04-25 No luck. It always appears over or under the main body CSS. Tried adding float left to the body CSS, still didn't get the sidebar to shift down off it's right side. Probably some conflicting CSS in there that I don't know of. CSS Help, would like to add a sidebar to Sterile theme! - Chilifrei64 - 2006-04-25 I would think that this shouldnt be too difficult to accomplish.. it should follow roughly the same concept of integrating it into wordpress. I too had many css conflicts while trying to integrate mine into wordpress but all went well once i discovered the "float" option. I may have some time later tonight to take a look at it .. right now I am getting ready to tear up my backyard CSS Help, would like to add a sidebar to Sterile theme! - Chilifrei64 - 2006-04-26 Well here is something that I literally threw together(and you will see what I mean when you click on the link) In short, what I did was in the zen.css I created div id called nav and added Then I hacked it into the theme file.. Place your sidebar code between the body and main div in each template (index.php, image.php and album.php) file. CSS Help, would like to add a sidebar to Sterile theme! - Chilifrei64 - 2006-04-26 bah!!!.. I hate css.. view it in IE, it doesnt show up right in firefox.. but hopefully you get the idea.. CSS Help, would like to add a sidebar to Sterile theme! - sshepherd - 2006-04-27 Yeah, that looks really close to how I'd like to have mine, except I'd like to to not move when the browser is re-sized smaller. CSS Help, would like to add a sidebar to Sterile theme! - Chilifrei64 - 2006-04-28 Alright..I went a little farther and this is what I came up with I the zen.css add this to #main Create a new id called #nav nav {
Place your sidebar code between the body and main div, in the nav div in each template (index.php, image.php and album.php) file. Reclick the link i posted above to see how it changed.. CSS Help, would like to add a sidebar to Sterile theme! - sshepherd - 2006-05-04 Ok, after a bit of modification that's working good. When resizing my browser however, the sidebar gets pushed down under the content, If I could get it to be fixed permantly and not budge when the browser squeezes it, that'd be perfect. CSS Help, would like to add a sidebar to Sterile theme! - Chilifrei64 - 2006-05-04 What browser are you viewing my link at.. I am using IE and Firefox and it is not moving...? CSS Help, would like to add a sidebar to Sterile theme! - ravi - 2006-05-05 You can use the CSS element — |