We have div content (#content), and on the right side of the div-tab (#tab) - when the user presses #tab, he should slide to the right and show various parameters.
I am not sure how to create this through jQuery. I thought (CSS project that I put together in my head):
#content {
z-index:10;
margin:0 auto
}
#tab {
z-index: 5;
float: left;
width: 150px
}
and javascript that moves #tab to the right by 140 pixels (10px tab]
This way, usually #tab will be mainly (except for the 10px graphic icon) behind #content, and jquery just changes position to move it to the right.
Is it possible? Is there a better approach?
hejog source
share