Perhaps you can help me with this. I’m getting a gap in between the image (landowner in box1) and box1-copy. I can’t figure out how to get rid of the gap. I’ve tried every possible combination of clear and float I can think of, but nothing seems to work.
Then you would make the tab-container tall enough for its contents to appear behind the grass, and you would add negative margin to the top of the grass to pull it up above the tab-container.
Make sense?
Walter
On May 31, 2013, at 2:21 PM, RavenManiac wrote:
Walter, how can I have part of the box that pops up remain in the grass?
Then you would make the tab-container tall enough for its contents to appear behind the grass, and you would add negative margin to the top of the grass to pull it up above the tab-container.
Make sense?
Walter
On May 31, 2013, at 2:21 PM, RavenManiac wrote:
Walter, how can I have part of the box that pops up remain in the grass?
But the grass image is a layered element that’s set to align to the bottom, which is why it moves up and down as the page content changes.
Your iOS code worked great. Here’s the exact code I used:
var tab = 30; //height of the tab to reveal
var restore = function(){
this.morph(this.tabbed, {duration: 0.6});
};
var reveal = function(){
this.morph('margin-top: 0', {duration: 0.6});
};
var setup = function(elm){
elm['tabbed'] = 'margin-top: ' + (elm.getHeight() - tab).toString() + 'px';
$(elm).setStyle(elm.tabbed);
}
var restore_if_open = function(evt){
if(parseInt(this.getStyle('margin-top'), 10) == 0)
this.morph(this.tabbed, {duration: 0.6});
};
$$('#box-wrapper > div').each(setup).
invoke('observe', 'mouseenter', reveal).
invoke('observe', 'mouseleave', restore).
invoke('observe', 'touchend', restore_if_open);
You may want to confirm that I’ve entered everything correctly.
Now all I need is your help with the flashing problem (timer), figuring out a way to keep the tabs partially embedded in the grass (I didn’t really understand your tab, tab, tab post), and figure out why I have a lot of extra space between the image and text in each box.
I know you’re busy and I really appreciate your time with this.