Totally Zenned
- Join Date:
- Jan 2005
- Location:
- USA, St. Louis
- Posts:
- 3,651
- Plugin Contributions:
- 5
Nifty Zen Template - Rounded Corners without images!
<div id="outerNiftySideboxWrapper"> <div id="innerNiftySideboxWrapper"> ``` I then went into jscript_niftyalayout.js and changed: ``` Nifty("div#mainWrapper", "big right"); Nifty("div#outermainWrapper", "big right"); to: Nifty("div#innerNiftySideboxWrapper", "big right"); Nifty("div#outerNiftySideboxWrapper", "big right"); ``` I then added #innerNiftySideboxWrapper and #outerNiftySideboxWrapper to the stylesheet, copied the relevant styles from your #mainWrapper and #outermainWrapper and gave it a whorl. > > Result was that it rounded the corners of the first sidebox (Categories) as expected, but left all the others square. :dontgetit > > Skimming back through the examples on Alessandro's original Nifty Corners Cube page I started to form the (dim!) impression that if I want to round more than one element then I either need to make multiple calls or turn the sideboxes into some kind of list as you have done with the tabs. Don't know if that's right or not, but must admit that at that point I hit the brain-fade barrier and decided to give it a rest for a while. Can't say I woke up this morning with any better idea on what to try next. Any pointers would be much appreciated. > > Ianimac:
Jade,
Thanks for the reply. Straight after I'd posted yesterday I decided to try more-or-less exactly that. I copied tpl_box_default_left.php into my template folder and, just to be 'safe', decided to wrap div class="leftBoxContainer" in a couple of new ones: ```
I'd have to look at your site to understand what the issue is. You've got to look at the source code and see if the two div's wrap around every sidebox, or if those two divs are only around the categories sidebox.
Now, the question is, do you WANT the rounded corners around every side box, OR only around the entire sidebox.
Also, by doing both inner and outer wrapper's, you should end up with TWO rounded corner layers. You only need one to get a single layer rounded box.
