LaurelRose
11-19-2012, 02:54 PM
Hi everyone,
I am attempting to create a layout with four sections. As you hover over the two top sections, the div expands and hides the div underneath. The first section, About, expands on hover, but then the div underneath - Blog, jumps to the right and covers the Contact section. I want the Blog section to be pushed down and out of view, not over. Any suggestions? Thanks for reading this and for any suggestions/solutions to this.
Here is the link:http://www.laurelnatale.me/tester14.html
here is the css:
/* container setting up the responsive columns and rows*/
#container {width: 100%; height: 100%; margin:0; overflow: hidden; position: absolute; z-index:0; }
/* this sets the height of the right columns in pixels and then is hidden so responsive divs can take the stage. */
#column-hide {position: absolute; z-index:0; float:left; z-index:0; height: 10000px; top: 0px; left: 0px; visibility:hidden;}
/* this sets the height of the right columns in pixels and then is hidden so responsive divs can take the stage. */
#column-2hide {position: absolute; z-index:0; float:right; z-index:0; height: 10000px; top: 0px; left: 0px; visibility:hidden;}
/* columns and rows based off of hidden column values */
#pageAbout {width: 50%; height:50%; z-index:0; float: left; margin: 0; overflow:hidden; background: hsl(0, 0%, 85%); color:hsl(0, 0%, 85%);}
#pageAbout:hover{height:100%; overflow:auto; color:hsl(0, 0%, 25%);}
#pagePort {width: 50%; height:50%; z-index:0; float: right; margin: 0; overflow:hidden; background: hsl(0, 0%, 44%); color: hsl(0, 0%, 44%);}
#pagePort:hover{height:100%; overflow-y:scroll; overflow-x:hidden; color: hsl(0, 0%, 85%);}
#pageBlog {width: 50%; height:50%; z-index:0; float:left; margin: 0; overflow:hidden; background: hsl(0, 0%, 71%); color: hsl(0, 0%, 71%);}
#pageBlog:hover{height:100%; overflow:auto; color:hsl(0, 0%, 25%); overflow:scroll;}
I am attempting to create a layout with four sections. As you hover over the two top sections, the div expands and hides the div underneath. The first section, About, expands on hover, but then the div underneath - Blog, jumps to the right and covers the Contact section. I want the Blog section to be pushed down and out of view, not over. Any suggestions? Thanks for reading this and for any suggestions/solutions to this.
Here is the link:http://www.laurelnatale.me/tester14.html
here is the css:
/* container setting up the responsive columns and rows*/
#container {width: 100%; height: 100%; margin:0; overflow: hidden; position: absolute; z-index:0; }
/* this sets the height of the right columns in pixels and then is hidden so responsive divs can take the stage. */
#column-hide {position: absolute; z-index:0; float:left; z-index:0; height: 10000px; top: 0px; left: 0px; visibility:hidden;}
/* this sets the height of the right columns in pixels and then is hidden so responsive divs can take the stage. */
#column-2hide {position: absolute; z-index:0; float:right; z-index:0; height: 10000px; top: 0px; left: 0px; visibility:hidden;}
/* columns and rows based off of hidden column values */
#pageAbout {width: 50%; height:50%; z-index:0; float: left; margin: 0; overflow:hidden; background: hsl(0, 0%, 85%); color:hsl(0, 0%, 85%);}
#pageAbout:hover{height:100%; overflow:auto; color:hsl(0, 0%, 25%);}
#pagePort {width: 50%; height:50%; z-index:0; float: right; margin: 0; overflow:hidden; background: hsl(0, 0%, 44%); color: hsl(0, 0%, 44%);}
#pagePort:hover{height:100%; overflow-y:scroll; overflow-x:hidden; color: hsl(0, 0%, 85%);}
#pageBlog {width: 50%; height:50%; z-index:0; float:left; margin: 0; overflow:hidden; background: hsl(0, 0%, 71%); color: hsl(0, 0%, 71%);}
#pageBlog:hover{height:100%; overflow:auto; color:hsl(0, 0%, 25%); overflow:scroll;}