Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLawrence Lee
4,240 PointsHow to implement 2 different grid structures in one section?
So I am trying to mimic the header-graphic navigation from this site: http://wpengine.com/
It seems that they are not applying any grid on the header-graphic area, but having them separated as 2 divs. In their Hero block (container) area. I am looking to recreate the giant content area (fluid content box with 5 navigation buttons). Please try to stretch the right side of browser, the main navigation boxes stays at the same position and the left area (content) extend its as fluid. I am trying to create that appearance.
``` /* For content navigation area */ .gwc_slide_buttons { width: 375px; height: 556px; right: 0; position: absolute; }
/* For content area */ .gwc_slider { left: 0; right: 375px; height: 556px; position: absolute; overflow: hidden; } '''
What i am having in my stylesheet:
''' /* For content area */ .slider_content { position: absolute; }
/* For the content navigation area */ .slider_content_navi { width: 430px; position: relative; } ```
As you can see here, I tried both absolute positioning for my content and navigation button, but it is not working as it should be compare to the code I have inspected.
Does anyone have any suggestion?
Here is the preview on jsfiddle:
2 Answers
Joseph Wasden
20,406 PointsSo, to clarify, you are asking how we would recreate the navigation of the example site? any particular features you would like to copy? Say, the logo, or the cut off corners?
What specifically are you trying to accomplish?
Lawrence Lee
4,240 PointsActually, I am asking how would you recreate the headergraphic area (content with 5 navigation boxes). Please try to stretch the right side of browser, the main navigation boxes stays at the same position and the left area (content) extend its as fluid. I am trying to create that appearance.
There would not be any features I would like to copy for the site for now.