I have a page that was designed in photoshop a bid wider than 960px. I read some articles about modifying the grids and found it easy to follow, however, I'm not clear on how to handle 'outside margins'. The page I'm working on is here:
http://rosetta.abyteshosting.com/
I think my 'live' content _would_ fit in the standard 960 grid (or even a 940 grid), but I'm not sure how to deal with the gaps on each side. I need the 1030 width on the 'main' div so that I can have the background that includes my page boundary and the dropshadow etc. This is obviously not useable space, but it's unclear of where to set up a margin to accomodate.
I tried one of the online generators:
which lets you explicitly set an 'outside margin' but it doesn't look like fusion supports that. If I design a grid with a uniform gutter, than some of my grid will always need to be 'unoccupied'.
I tried to set the margins on main-inner, and that works, somewhat, but then I need to tweak all the widths.
Any recommendations?
Comments
Comment #1
jeremycaldwell commentedIt gets a bit tricky when you try to load some extra divs outside the main 960px grid but it can be done. What I've done in the past to get outside borders with gradients like your example site is to wrap the entire page inner div with an "inner" and "inner-inner" div. What I mean by that is just inside the "page" ID you have two wrapping divs that add the extra padding to the site for the outside border/background image area.
So the beginning of your page.tpl.php markup will look like this:
And then of course you close the "page" and "page-inner" and "page-inner-inner" divs at the bottom of your page.tpl.php. Then write some CSS that accommodates for these changes and doesn't break the grid like so:
For that I am loading some images for the left and right paddings on the page ID inner divs. So this adds a bit of padding outside of the grid and keeps the grid in place.
Hope that helps!
Comment #3
arisaves commentedWhat if I wanted to do the same thing to the content area only? Without including the header top/other page regions?
Comment #4
aquariumtap commented@arisaves, I don't quite understand your question. What do you want to do in the content area?
Comment #5
arisaves commentedMy header top region is set to stretch across the entire browser window, I've made it into a custom toolbar.
I want to wrap a graphic around the [960px] content in the middle, without cutting off the sides of the header-top region.
Comment #6
arisaves commentedi managed to accomplish what i wanted -- sort of -- by using this in my page.tpl file:
and this in my css file:
but this method is messy & prevents my 960px content area from being properly centered when the browser window is resized.
Comment #7
arisaves commentedOr, to better phrase it, I basically want to place an image to the left of my grid, an image to the right of my grid, and then wrap a border around the whole thing [left image, grid, and right image]
Comment #8
arisaves commentedI describe my situation in more detail here, and provide a diagram. http://drupal.org/node/1211078
Comment #9
Poieo commentedClosing as won't fix since the D6 version is not getting any new development.