We have a div of content (#content) and on the right hand side of the div a tab (#tab) -- when a user clicks #tab it should slide to the right and reveal various options.
I'm not sure how to create this via jQuery. I thought (draft CSS that I made up in my head):
#content {
z-index:10;
margin:0 auto
}
#tab {
z-index: 5;
float: left;
width: 150px
}
and javascript that slides #tab to the right by 140px [the tab graphic is 10px]
So typically the #tab would mostly (except the 10px graphic icon) be behind #content, and the jquery simply alters the position to shift it to the right.
Is that possible? Is there a better approach?